dynetworkx.SnapshotGraph.is_directed

SnapshotGraph.is_directed(sbunch=None)

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

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:is_direct_list – List of boolean values if index in sbunch is a directed graph.
Return type:list

Examples

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