NetworkX - DiGraph

https://networkx.org/documentation/stable/reference/classes/digraph.html

DIRECTED GRAPHS


import networkx as nx

G = nx.DiGraph()   # a directed graph