dynetworkx.ImpulseGraph.__init__

ImpulseGraph.__init__(name='', **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.ImpulseGraph()
>>> G = dnx.ImpulseGraph(name='my graph')
>>> G.graph
{'name': 'my graph'}