agl2
Class Digraph
java.lang.Object
|
+--agl2.AbstractGraph
|
+--agl2.Digraph
All Implemented Interfaces: DirectedGraph , EdgeGraph , Graph , GraphTag , PropertyGraph , java.io.Serializable, VertexGraph
Direct Known Subclasses: Bigraph
public class Digraph extends AbstractGraph implements DirectedGraph
A digraph (or a directed graph) is a graph in which the edges are
directed. (Formally: a digraph is a (usually finite) set of
vertices V *and set of ordered pairs (a,b) (where a, b are in V)
called edges
See Also: Serialized Form
Fields inherited from interface agl2.GraphTag
allTags , BIGRAPH , DIGRAPH , EDGE_DATA , EDGE_INDEX , EDGE_WEIGHT , GRAPH_ACYLIC , GRAPH_NAME , GRAPH_ROOT , GRAPH_TRAITS , MULTIGRAPH , OBJECT_VERTEX , UNGRAPH , VERTEX_COLOR , VERTEX_DATA , VERTEX_DISTANCE , VERTEX_EDGEMAP , VERTEX_INDEX
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Digraph
public Digraph ()
The default constructor (for serialization)
Digraph
public Digraph (EdgeRep r,
GraphProperties p)
Contructor for GraphBuilder
getAdjacentVertices
public java.util.Set getAdjacentVertices (java.lang.Object v)
Specified by: getAdjacentVertices
in interface VertexGraph
Returns: Set o in V s.t. (v,o) in E
getAdjacentEdges
public java.util.Set getAdjacentEdges (java.lang.Object v)
Specified by: getAdjacentEdges
in interface EdgeGraph
Returns: Set (o,v) in E
getAdjacentOutVertices
public java.util.Set getAdjacentOutVertices (java.lang.Object v)
Description copied from interface: DirectedGraph
Same as getAdjacentVertices
Specified by: getAdjacentOutVertices
in interface DirectedGraph
Returns: Set o in V s.t. (v,o) in ESee Also: VertexGraph
getAdjacentOutEdges
public java.util.Set getAdjacentOutEdges (java.lang.Object v)
Specified by: getAdjacentOutEdges
in interface DirectedGraph
Returns: Set
toString
public java.lang.String toString ()
Overrides: toString
in class java.lang.Object
getRoot
public java.lang.Object getRoot ()
Specified by: getRoot
in interface DirectedGraph