Directed graphs and multigraphs