public class Graph.Contraction extends Graph.Derived implements Graph.SubGraph
contraction(vs).Graph.Canonical, Graph.Contraction, Graph.Dense, Graph.Derived, Graph.Edge, Graph.Induced, Graph.Renumbered, Graph.Sparse, Graph.SubGraph, Graph.SubGraphs, Graph.ToDirected, Graph.ToUndirected, Graph.VertexValue.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple| Modifier and Type | Field and Description |
|---|---|
int[] |
vs
The contracted vertices of the
parent Graph. |
| Constructor and Description |
|---|
Contraction(int[] vs)
vs must be a subset of the parent Graph's
|
| Modifier and Type | Method and Description |
|---|---|
Value |
eLabel(int v0,
int v1)
|
boolean |
isEdge(int v0,
int v1)
If v0 and/or v1 is vs[0] to which >1 vertices of
the parent Graph are contracted, was there an Edge
from/to any of the latter in the parent?
|
java.lang.String |
toString()
|
int |
v2pv(int v)
The Vertex of the
parent that 'v'
corresponds to. |
Value |
vLabel(int v)
|
int |
vSize()
The number of Vertices in 'this' Contracted Graph.
|
parent, typeA, adjacent, arrayA, byDegree, byDegree, canonical, canonical1, canonical1R, canonical2, canonical2R, checkProperties, contraction, degree, dense, dense, directPredecessors, directSuccessors, edges, edgesCorrespond, eLabelled, eLabels, eSize, eStats, flatten, hashCode, inDegree, induced, isDirected, isomorphic, isUndirected, joinedTo, localHash, main, maxEdges, nAutomorphisms, outDegree, randomised, renumbered, selfLoops, structurallyIdentical, subGraphs, subGraphs, toDirected, toUndirected, vLabelled, vLabels, vPair2nAoM, apply, bOp, compareTo, cons, cts, elt, errMsg, error, force, isTuple, just, n, nElts, nlAoM, pair, print, quad, real, RTE, triple, tuple, UOE, uOp, xpublic final int[] vs
parent Graph.
Note, vs is in ascending order!
vs[0] has some special uses.public Contraction(int[] vs)
public int vSize()
vSize in class Graph.Derivedpublic int v2pv(int v)
parent that 'v'
corresponds to. If, say, vertices x<y<z
(of the parent) are the contracted vertices then
a Vertex v in the Contraction maps to its old Vertex
number in the parent, which is the same number
if v≤x and is >v otherwise.v2pv in interface Graph.SubGraphpublic boolean isEdge(int v0,
int v1)
isEdge in class Graph.Derivedpublic Value vLabel(int v)
public Value eLabel(int v0, int v1)
public java.lang.String toString()
Valueprinting of
constants, and in calls to Value.error(java.lang.String).
The result does not necessarily fully specify a large, or
infinite(!), Value. (This default returns the Class Name of 'this'.)
Also see print(ps).