Package edu.uci.ics.jung.graph
Class DirectedOrderedSparseMultigraph<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.graph.AbstractGraph<V,E>
-
- edu.uci.ics.jung.graph.AbstractTypedGraph<V,E>
-
- edu.uci.ics.jung.graph.DirectedSparseMultigraph<V,E>
-
- edu.uci.ics.jung.graph.DirectedOrderedSparseMultigraph<V,E>
-
- All Implemented Interfaces:
edu.uci.ics.jung.graph.DirectedGraph<V,E>
,edu.uci.ics.jung.graph.Graph<V,E>
,edu.uci.ics.jung.graph.Hypergraph<V,E>
,edu.uci.ics.jung.graph.MultiGraph<V,E>
,java.io.Serializable
public class DirectedOrderedSparseMultigraph<V,E> extends DirectedSparseMultigraph<V,E> implements edu.uci.ics.jung.graph.DirectedGraph<V,E>, edu.uci.ics.jung.graph.MultiGraph<V,E>
An implementation ofDirectedGraph
, suitable for sparse graphs, that orders its vertex and edge collections according to insertion time.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uci.ics.jung.graph.DirectedSparseMultigraph
edges, vertices
-
Fields inherited from class edu.uci.ics.jung.graph.AbstractTypedGraph
edge_type
-
-
Constructor Summary
Constructors Constructor Description DirectedOrderedSparseMultigraph()
Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addVertex(V vertex)
static <V,E>
org.apache.commons.collections4.Factory<edu.uci.ics.jung.graph.DirectedGraph<V,E>>getFactory()
Returns aFactory
that creates an instance of this graph type.java.util.Collection<E>
getIncidentEdges(V vertex)
java.util.Collection<V>
getNeighbors(V vertex)
java.util.Collection<V>
getPredecessors(V vertex)
java.util.Collection<V>
getSuccessors(V vertex)
-
Methods inherited from class edu.uci.ics.jung.graph.DirectedSparseMultigraph
addEdge, containsEdge, containsVertex, findEdge, getDest, getEdgeCount, getEdges, getEndpoints, getIncoming_internal, getInEdges, getOutEdges, getOutgoing_internal, getSource, getVertexCount, getVertices, isDest, isSource, removeEdge, removeVertex
-
Methods inherited from class edu.uci.ics.jung.graph.AbstractTypedGraph
getDefaultEdgeType, getEdgeCount, getEdges, getEdgeType, hasEqualEdgeType, validateEdgeType
-
Methods inherited from class edu.uci.ics.jung.graph.AbstractGraph
addEdge, addEdge, addEdge, addEdge, addEdge, degree, findEdgeSet, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, addEdge, getDest, getEndpoints, getInEdges, getOpposite, getOutEdges, getPredecessorCount, getSource, getSuccessorCount, inDegree, isDest, isPredecessor, isSource, isSuccessor, outDegree
-
Methods inherited from interface edu.uci.ics.jung.graph.Hypergraph
addEdge, addEdge, containsEdge, containsVertex, degree, findEdge, findEdgeSet, getDefaultEdgeType, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getIncidentCount, getIncidentVertices, getNeighborCount, getVertexCount, getVertices, isIncident, isNeighbor, removeEdge, removeVertex
-
-
-
-
Method Detail
-
getFactory
public static <V,E> org.apache.commons.collections4.Factory<edu.uci.ics.jung.graph.DirectedGraph<V,E>> getFactory()
Returns aFactory
that creates an instance of this graph type.- Type Parameters:
V
- the vertex type for the graph factoryE
- the edge type for the graph factory
-
addVertex
public boolean addVertex(V vertex)
-
getPredecessors
public java.util.Collection<V> getPredecessors(V vertex)
- Specified by:
getPredecessors
in interfaceedu.uci.ics.jung.graph.Graph<V,E>
- Specified by:
getPredecessors
in interfaceedu.uci.ics.jung.graph.Hypergraph<V,E>
- Overrides:
getPredecessors
in classDirectedSparseMultigraph<V,E>
-
getSuccessors
public java.util.Collection<V> getSuccessors(V vertex)
- Specified by:
getSuccessors
in interfaceedu.uci.ics.jung.graph.Graph<V,E>
- Specified by:
getSuccessors
in interfaceedu.uci.ics.jung.graph.Hypergraph<V,E>
- Overrides:
getSuccessors
in classDirectedSparseMultigraph<V,E>
-
getNeighbors
public java.util.Collection<V> getNeighbors(V vertex)
- Specified by:
getNeighbors
in interfaceedu.uci.ics.jung.graph.Hypergraph<V,E>
- Overrides:
getNeighbors
in classDirectedSparseMultigraph<V,E>
-
getIncidentEdges
public java.util.Collection<E> getIncidentEdges(V vertex)
- Specified by:
getIncidentEdges
in interfaceedu.uci.ics.jung.graph.Hypergraph<V,E>
- Overrides:
getIncidentEdges
in classDirectedSparseMultigraph<V,E>
-
-