pseudodigraph
A pseudodigraph, also called a directed pseudograph or multidigraph, is a directed graph that allows multiple arcs between the same ordered pair of vertices and may include loops (edges from a vertex to itself). It is defined by a pair (V, E) where V is a set of vertices and E is a multiset of arcs, with each arc having an ordered pair (tail, head) of vertices. A loop is an arc with tail equal to head.
If a pseudodigraph has no loops and no parallel arcs, it reduces to a simple directed graph.
Common representations include adjacency matrices and adjacency lists. In an adjacency matrix A, the entry A[u][v]
Pseudodigraphs are used to model networks with parallel connections and self-connections, such as transportation networks with