Go to the first, previous, next, last section, table of contents.


Unweighted graph-processing utilities

Author(s): M. Carlsson, adapted from shared code written by Richard A O'Keefe. Mods by F.Bueno and M.Carro..

Version: 1.11#222 (2004/5/24, 13:8:7 CEST)

Version of last change: 1.11#64 (2003/12/9, 7:11:15 CET)

An unweighted directed graph (ugraph) is represented as a list of (vertex-neighbors) pairs, where the pairs are in standard order (as produced by keysort with unique keys) and the neighbors of each vertex are also in standard order (as produced by sort), and every neighbor appears as a vertex even if it has no neighbors itself.

An undirected graph is represented as a directed graph where for each edge (U,V) there is a symmetric edge (V,U).

An edge (U,V) is represented as the term U-V.

A vertex can be any term. Two vertices are distinct iff they are not identical ( ==/2).

A path is represented as a list of vertices. No vertex can appear twice in a path.

Usage and interface (ugraphs)

Documentation on exports (ugraphs)

PREDICATE: vertices_edges_to_ugraph/3:

No further documentation available for this predicate.

PREDICATE: neighbors/3:

Usage: neighbors(Vertex, Graph, Neighbors)

PREDICATE: edges/2:

Usage: edges(Graph, Edges)

PREDICATE: del_vertices/3:

Usage: del_vertices(Graph1, Vertices, Graph2)

PREDICATE: vertices/2:

Usage: vertices(Graph, Vertices)

PREDICATE: add_vertices/3:

Usage: add_vertices(Graph1, Vertices, Graph2)

PREDICATE: add_edges/3:

Usage: add_edges(Graph1, Edges, Graph2)

PREDICATE: transpose/2:

Usage: transpose(Graph, Transpose)

PREDICATE: rooted_subgraph/3:

Usage: rooted_subgraph(Graph, Sources, SubGraph)

PREDICATE: point_to/3:

Usage: point_to(Vertex, Graph, Point_to)

REGTYPE: ugraph/1:

Usage: ugraph(Graph)


Go to the first, previous, next, last section, table of contents.