dynetworkx.IntervalGraph.__init__¶
-
IntervalGraph.
__init__
(**attr)¶ Initialize an interval graph with edges, name, or graph attributes.
Parameters: attr (keyword arguments, optional (default= no attributes)) – Attributes to add to graph as key=value pairs. Examples
>>> G = dnx.IntervalGraph() >>> G = dnx.IntervalGraph(name='my graph') >>> G.graph {'name': 'my graph'}