public class Directed.AsUndirected extends Undirected implements Graph.SubGraph
Undirected.asDirected().Undirected.AsDirected, Undirected.Dense, Undirected.Edge, Undirected.K, Undirected.Sparse, Undirected.VertexGraph.Canonical, Graph.Contraction, Graph.Derived, Graph.Induced, Graph.Renumbered, Graph.SubGraph, Graph.SubGraphs, Graph.ToDirected, Graph.ToUndirectedValue.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.Tupleunlabelled, unlabelled_O| Constructor and Description |
|---|
AsUndirected() |
| Modifier and Type | Method and Description |
|---|---|
Value |
eLabel(int v0,
int v1)
UnsupportedOperation, the default assumption is no
Edge labels.
|
boolean |
isEdge(int v0,
int v1)
Is 〈v0, v1〉 an Edge in 'this' Graph?
Also see
adjacent(v0,v1). |
Directed |
parent()
Return the parent Graph of which 'this' is a Child.
|
java.lang.String |
toString()
|
Type |
type()
Note, type(),
Graph.adjacent(int, int),
Graph.vLabelled(), Graph.vLabel(int),
Graph.eLabelled(), and Graph.eLabel(int, int) must be consistent. |
int |
v2pv(int v)
Vertex 'v' of 'this' Graph corresponds to v2pv(v)
of the
parent Graph. |
Value |
vLabel(int v)
UnsupportedOperation, the default assumption is no
Vertex labels.
|
int |
vSize()
The number of Vertices, |V|≥1,
|
adjacent, asDirected, degree, dense, dense, dense, dense, dense, dense, main, sparse, toUndirected, upperRightAA, arrayA, byDegree, byDegree, canonical, canonical1, canonical1R, canonical2, canonical2R, checkProperties, contraction, directPredecessors, directSuccessors, edges, edgesCorrespond, eLabelled, eLabels, eSize, eStats, flatten, hashCode, inDegree, induced, isDirected, isomorphic, isUndirected, joinedTo, localHash, maxEdges, nAutomorphisms, outDegree, randomised, renumbered, selfLoops, structurallyIdentical, subGraphs, subGraphs, toDirected, vLabelled, vLabels, vPair2npublic Directed parent()
Childpublic int v2pv(int v)
Graph.SubGraphparent Graph.v2pv in interface Graph.SubGraphpublic Type type()
GraphGraph.adjacent(int, int),
Graph.vLabelled(), Graph.vLabel(int),
Graph.eLabelled(), and Graph.eLabel(int, int) must be consistent.public int vSize()
GrapheSize().public boolean isEdge(int v0,
int v1)
Graphadjacent(v0,v1).public Value vLabel(int v)
GraphvLabelled() and
eLabel(v0,v1).public Value eLabel(int v0, int v1)
GrapheLabelled() and
vLabel(v).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).