Class UndirectedSimpleGraph<V>
- java.lang.Object
-
- org.processmining.plugins.InductiveMiner.graphs.UndirectedSimpleGraph<V>
-
- All Implemented Interfaces:
UndirectedGraph<V>
public class UndirectedSimpleGraph<V> extends java.lang.Object implements UndirectedGraph<V>
No self-edges, no arc weights. Quadratic implementation. Supports negation.- Author:
- sleemans
-
-
Constructor Summary
Constructors Constructor Description UndirectedSimpleGraph(java.lang.Class<?> clazz, java.util.Collection<V> vertices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEdge(int a, int b)VgetEdgeNodeA(long edgeIndex)VgetEdgeNodeB(long edgeIndex)intgetEdgeNodeIndexA(long edgeIndex)intgetEdgeNodeIndexB(long edgeIndex)intgetEdgeNumber(int a, int b)java.lang.Iterable<java.lang.Long>getEdges()V[]getVertices()booleanhasEdge(int a, int b)voidinvert()Invert all edges.
-
-
-
Constructor Detail
-
UndirectedSimpleGraph
public UndirectedSimpleGraph(java.lang.Class<?> clazz, java.util.Collection<V> vertices)
-
-
Method Detail
-
addEdge
public void addEdge(int a, int b)- Specified by:
addEdgein interfaceUndirectedGraph<V>
-
hasEdge
public boolean hasEdge(int a, int b)- Specified by:
hasEdgein interfaceUndirectedGraph<V>
-
getEdgeNumber
public int getEdgeNumber(int a, int b)
-
invert
public void invert()
Invert all edges.
-
getEdges
public java.lang.Iterable<java.lang.Long> getEdges()
- Specified by:
getEdgesin interfaceUndirectedGraph<V>
-
getEdgeNodeA
public V getEdgeNodeA(long edgeIndex)
- Specified by:
getEdgeNodeAin interfaceUndirectedGraph<V>
-
getEdgeNodeIndexA
public int getEdgeNodeIndexA(long edgeIndex)
- Specified by:
getEdgeNodeIndexAin interfaceUndirectedGraph<V>
-
getEdgeNodeB
public V getEdgeNodeB(long edgeIndex)
- Specified by:
getEdgeNodeBin interfaceUndirectedGraph<V>
-
getEdgeNodeIndexB
public int getEdgeNodeIndexB(long edgeIndex)
- Specified by:
getEdgeNodeIndexBin interfaceUndirectedGraph<V>
-
getVertices
public V[] getVertices()
- Specified by:
getVerticesin interfaceUndirectedGraph<V>
-
-