| Constructor and Description |
|---|
GraphCopy() |
GraphCopy(java.util.List<V> vertices,
java.util.List<E> edges) |
| Modifier and Type | Method and Description |
|---|---|
TriangulatedEdge<V> |
addTriangulatedEdge(V v1,
V v2)
Adds a triangulated edge between the given two vertices
|
java.util.List<V> |
adjacentVerticesWithTriangulated(V v)
Finds all vertices adjacent to the given vertex
taking triangulated edges into account as well
|
java.util.List<Edge<V>> |
allAdjacentEdgesWithTriangulated(V v)
Finds all edges adjacent to the given vertex
taking triangulated edges into account as well
|
java.util.List<Edge<V>> |
edgeesBetweenWithTriangulated(V v1,
V v2)
Finds all edges between the given two vertices taking
triangulated edges into account as well
|
boolean |
hasEdge(V v1,
V v2)
Checks if vertices v1 and v2 are connected i.e.
|
void |
removeEdgeWithTriangulated(Edge<V> e)
Removes an edge from the graph, checking if it is
a triangulated edge or a regular one
|
int |
vertexDegree(V v)
Number of edges entering or leaving v
|
addEdge, addVertex, addVertex, addVertexBeginning, adjacencyMatrix, adjacentEdges, adjacentVertices, allEdges, edgeBetween, edgeesBetween, edgesBetween, equals, getAdjacentLists, getAllSelfLoopEdges, getAllSinks, getAllSources, getEdges, getTreeLeaves, getVertexByContent, getVertices, graphMaxDegree, hashCode, hasSelfLoopEdges, hasVertex, inDegree, inEdges, isBiconnected, isConnected, isConnected, isCyclic, isDirected, isRing, isSimple, isSink, isSource, isTree, listBiconnectedComponents, listCutVertices, listMultiEdges, outDegree, outEdges, printAdjacencyMatrix, removeEdge, removeVertex, setDirected, setEdges, setVertices, subgraph, toStringpublic TriangulatedEdge<V> addTriangulatedEdge(V v1, V v2)
v1 - The first vertexv2 - The second vertexpublic int vertexDegree(V v)
Graphpublic boolean hasEdge(V v1, V v2)
Graphpublic void removeEdgeWithTriangulated(Edge<V> e)
e - Edgepublic java.util.List<V> adjacentVerticesWithTriangulated(V v)
v - The vertexvpublic java.util.List<Edge<V>> allAdjacentEdgesWithTriangulated(V v)
v - The vertexv