public abstract class Directed extends Graph
Undirected
and Graph
.Modifier and Type | Class and Description |
---|---|
class |
Directed.AsUndirected
Ignore the directions of the Edges in 'this' Directed Graph to
create an Undirected version; in general there is a loss
of information.
|
static class |
Directed.C
The class of Cyclic Directed Graphs of the form
|
static class |
Directed.Dense
A Dense, Directed Graph with Type t and adjacency Matrix A.
|
class |
Directed.Edge
Also see
Undirected.Edge . |
static class |
Directed.Sparse
The class of Sparse Directed Graphs.
|
class |
Directed.Vertex
Also see
Undirected.Vertex . |
Graph.Canonical, Graph.Contraction, Graph.Derived, Graph.Induced, Graph.Renumbered, Graph.SubGraph, Graph.SubGraphs, Graph.ToDirected, Graph.ToUndirected
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 |
---|---|
static Type |
unlabelled
The standard type of Directed (directed, no self-loop) Graphs.
|
static Type |
unlabelled_O
Type of Directed, unlabelled, self-loops (O) allowed Graphs.
|
Constructor and Description |
---|
Directed() |
Modifier and Type | Method and Description |
---|---|
Directed.AsUndirected |
asUndirected()
Convenience function.
|
int |
degree(int v)
inDegree(v) +outDegree(v)
(a self-loop 〈v,v〉 is counted twice). |
static Directed.Dense |
dense(boolean selfLoops,
int[][] A)
|
static Directed.Dense |
dense(boolean selfLoops,
Matrix A)
|
static Directed.Dense |
dense(int[][] A)
dense(false,A) -- no self-loops. |
static Directed.Dense |
dense(Matrix A)
dense(false, A) -- no self-loops. |
static Directed.Dense |
dense(Type t,
int[][] A)
|
static Directed.Dense |
dense(Type t,
Matrix A)
Return a Dense Directed Graph having Type 't' and Adjacency Matrix 'A'.
|
static void |
main(java.lang.String[] argv)
|
static Directed.Sparse |
sparse(Type t,
int V,
int[][] es)
Convenience function.
|
Directed |
toDirected()
Identity function; see
Graph.toDirected() . |
A, adjacent, arrayA, byDegree, byDegree, canonical, canonical1, canonical1R, canonical2, canonical2R, checkProperties, contraction, directPredecessors, directSuccessors, edges, edgesCorrespond, eLabel, eLabelled, eLabels, eSize, eStats, flatten, hashCode, inDegree, induced, isDirected, isEdge, isomorphic, isUndirected, joinedTo, localHash, maxEdges, nAutomorphisms, outDegree, randomised, renumbered, selfLoops, structurallyIdentical, subGraphs, subGraphs, toUndirected, type, vLabel, vLabelled, vLabels, vPair2n, vSize
public static final Type unlabelled
public static final Type unlabelled_O
public int degree(int v)
inDegree(v)
+outDegree(v)
(a self-loop 〈v,v〉 is counted twice).public Directed toDirected()
Graph.toDirected()
.toDirected
in class Graph
public Directed.AsUndirected asUndirected()
public static Directed.Dense dense(Type t, Matrix A)
Undirected.dense(graph.Type, la.maths.Matrix)
and Graph.dense(graph.Type, la.maths.Matrix)
.public static Directed.Dense dense(boolean selfLoops, Matrix A)
dense(t,A)
. 'selfLoops' specifies
if Graphs are allowed to have self-loops, not if
this Graph actually has any.public static Directed.Dense dense(Matrix A)
dense(false, A)
-- no self-loops.public static Directed.Dense dense(Type t, int[][] A)
public static Directed.Dense dense(boolean selfLoops, int[][] A)
public static Directed.Dense dense(int[][] A)
dense(false,A)
-- no self-loops.public static Directed.Sparse sparse(Type t, int V, int[][] es)
public static void main(java.lang.String[] argv)