public class DirectedOrderedSparseMultigraph<V,E> extends DirectedSparseMultigraph<V,E> implements DirectedGraph<V,E>, MultiGraph<V,E>
DirectedGraph, suitable for sparse graphs,
that orders its vertex and edge collections
according to insertion time.edges, verticesedge_type| Constructor and Description |
|---|
DirectedOrderedSparseMultigraph()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addVertex(V vertex) |
static <V,E> com.google.common.base.Supplier<DirectedGraph<V,E>> |
getFactory() |
Collection<E> |
getIncidentEdges(V vertex) |
Collection<V> |
getNeighbors(V vertex) |
Collection<V> |
getPredecessors(V vertex) |
Collection<V> |
getSuccessors(V vertex) |
addEdge, containsEdge, containsVertex, findEdge, getDest, getEdgeCount, getEdges, getEndpoints, getIncoming_internal, getInEdges, getOutEdges, getOutgoing_internal, getSource, getVertexCount, getVertices, isDest, isSource, removeEdge, removeVertexgetDefaultEdgeType, getEdgeCount, getEdges, getEdgeType, hasEqualEdgeType, validateEdgeTypeaddEdge, addEdge, addEdge, addEdge, addEdge, degree, findEdgeSet, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdge, addEdge, getDest, getEndpoints, getInEdges, getOpposite, getOutEdges, getPredecessorCount, getSource, getSuccessorCount, inDegree, isDest, isPredecessor, isSource, isSuccessor, outDegreeaddEdge, addEdge, containsEdge, containsVertex, degree, findEdge, findEdgeSet, getDefaultEdgeType, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getIncidentCount, getIncidentVertices, getNeighborCount, getVertexCount, getVertices, isIncident, isNeighbor, removeEdge, removeVertexpublic DirectedOrderedSparseMultigraph()
public static <V,E> com.google.common.base.Supplier<DirectedGraph<V,E>> getFactory()
V - the vertex type for the graph SupplierE - the edge type for the graph SupplierSupplier that creates an instance of this graph type.public boolean addVertex(V vertex)
addVertex in interface Hypergraph<V,E>addVertex in class DirectedSparseMultigraph<V,E>public Collection<V> getPredecessors(V vertex)
getPredecessors in interface Graph<V,E>getPredecessors in interface Hypergraph<V,E>getPredecessors in class DirectedSparseMultigraph<V,E>public Collection<V> getSuccessors(V vertex)
getSuccessors in interface Graph<V,E>getSuccessors in interface Hypergraph<V,E>getSuccessors in class DirectedSparseMultigraph<V,E>public Collection<V> getNeighbors(V vertex)
getNeighbors in interface Hypergraph<V,E>getNeighbors in class DirectedSparseMultigraph<V,E>public Collection<E> getIncidentEdges(V vertex)
getIncidentEdges in interface Hypergraph<V,E>getIncidentEdges in class DirectedSparseMultigraph<V,E>Copyright © 2016. All rights reserved.