Digraph

A shorthand for a directed graph.

alias Digraph(Vertex) = BasicGraph!(Vertex, EdgeDirection.directed)

Examples

Test if a type T is any graph type with a particular vertex type.

1 Graph!int graph;
2 
3 assert(isUndirectedGraph!(typeof(graph), int));
4 assert(isGraph!(typeof(graph), int));
5 assert(!isGraph!(typeof(graph), short));
6 
7 Digraph!int digraph;
8 
9 assert(isDirectedGraph!(typeof(digraph), int));
10 assert(isGraph!(typeof(digraph), int));
11 assert(!isGraph!(typeof(digraph), short));

Meta