dynetworkx.SnapshotGraph.is_multigraph

SnapshotGraph.is_multigraph(sbunch=None)

Returns a list of boolean values for if the graph at the index is a multigraph.

Parameters:sbunch (container of snapshot indexes, optional (default= None)) – Each snapshot index in this list will be included in the returned list of booleans. It is highly recommended that this list is sequential, however it can be out of order.
Returns:mutli_list – List of boolean values if index in sbunch is a multigraph.
Return type:list

Examples

>>> G = dnx.SnapshotGraph()
>>> G.add_snapshot([(1, 2), (1, 3)])
>>> G.add_snapshot([(1, 4), (1, 3)])
>>> G.is_multigraph(sbunch=[0, 1])
[False, False]
>>> G.is_multigraph()
[False, False]