Interface UndirectedGraph<V>
-
- All Known Implementing Classes:
UndirectedSimpleGraph
public interface UndirectedGraph<V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddEdge(int nodeIndexA, int nodeIndexB)VgetEdgeNodeA(long edgeIndex)VgetEdgeNodeB(long edgeIndex)intgetEdgeNodeIndexA(long edgeIndex)intgetEdgeNodeIndexB(long edgeIndex)java.lang.Iterable<java.lang.Long>getEdges()V[]getVertices()booleanhasEdge(int nodeIndexA, int nodeIndexB)
-
-
-
Method Detail
-
getVertices
V[] getVertices()
-
getEdges
java.lang.Iterable<java.lang.Long> getEdges()
-
addEdge
void addEdge(int nodeIndexA, int nodeIndexB)
-
hasEdge
boolean hasEdge(int nodeIndexA, int nodeIndexB)
-
getEdgeNodeIndexA
int getEdgeNodeIndexA(long edgeIndex)
-
getEdgeNodeA
V getEdgeNodeA(long edgeIndex)
-
getEdgeNodeIndexB
int getEdgeNodeIndexB(long edgeIndex)
-
getEdgeNodeB
V getEdgeNodeB(long edgeIndex)
-
-