public class Graph.Induced extends Graph.Derived implements Graph.SubGraph
induced(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.Vertex
Value.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
Vertex 'v' of 'this' Induced sub-graph is Vertex vs[v] of
the
parent() Graph. |
Constructor and Description |
---|
Induced(int[] vs)
vs must be ascending and a subset of the parent Graph's
{0, ..., vSize()-1}.
|
Modifier and Type | Method and Description |
---|---|
Value |
eLabel(int v0,
int v1)
|
boolean |
isEdge(int v0,
int v1)
|
java.lang.String |
toString()
|
int |
v2pv(int v)
Vertex 'v' of 'this' (Vertex-)Induced sub-graph is Vertex vs[v] of
the
parent() Graph. |
Value |
vLabel(int v)
|
int |
vSize()
Return |
vs |. |
parent, type
A, 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, vPair2n
AoM, apply, bOp, compareTo, cons, cts, elt, errMsg, error, force, isTuple, just, n, nElts, nlAoM, pair, print, quad, real, RTE, triple, tuple, UOE, uOp, x
public final int[] vs
parent()
Graph.public Induced(int[] vs)
public int v2pv(int v)
parent()
Graph.v2pv
in interface Graph.SubGraph
public int vSize()
vs
|.vSize
in class Graph.Derived
public boolean isEdge(int v0, int v1)
isEdge
in class Graph.Derived
public java.lang.String toString()
Value
printing
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)
.