graphscope.nx.generators.small.diamond_graph#
- graphscope.nx.generators.small.diamond_graph(create_using=None)[source]#
Returns the Diamond graph
The Diamond Graph is planar undirected graph with 4 nodes and 5 edges. It is also sometimes known as the double triangle graph or kite graph 1.
- Parameters
create_using (NetworkX graph constructor, optional (default=nx.Graph)) – Graph type to create. If graph instance, then cleared before populated.
- Returns
G – Diamond Graph with 4 nodes and 5 edges
- Return type
networkx Graph
References