@TestClass(value="org.openscience.cdk.ringsearch.cyclebasis.SimpleCycleTest") public class SimpleCycle extends org._3pq.jgrapht.graph.UndirectedSubgraph
Constructor and Description |
---|
SimpleCycle(org._3pq.jgrapht.UndirectedGraph g,
Collection edges)
Constructs a cycle in a graph consisting of the specified edges.
|
SimpleCycle(org._3pq.jgrapht.UndirectedGraph g,
Set edges)
Constructs a cycle in a graph consisting of the specified edges.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkConsistency() |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
List |
vertexList()
Returns a list of the vertices contained in this cycle.
|
double |
weight()
Returns the sum of the weights of all edges in this cycle.
|
addEdge, addEdge, addVertex, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, incomingEdgesOf, inDegreeOf, isVerifyIntegrity, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setVerifyIntegrity, vertexSet
addAllEdges, addAllVertices, containsEdge, removeAllEdges, removeAllEdges, removeAllVertices
addAllEdges, addAllVertices, addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
public SimpleCycle(org._3pq.jgrapht.UndirectedGraph g, Collection edges)
g
- the graph in which the cycle is containededges
- the edges of the cyclepublic SimpleCycle(org._3pq.jgrapht.UndirectedGraph g, Set edges)
g
- the graph in which the cycle is containededges
- the edges of the cyclepublic double weight()
public List vertexList()
public String toString()
toString
in class org._3pq.jgrapht.graph.AbstractGraph
public boolean checkConsistency()