https://github.com/kit-parco/networkit
Tip revision: 6e23cb447d16b7209b29728c5aeedaa8ae967a28 authored by Kolja Esders on 07 June 2017, 20:15:15 UTC
Added g++-7 to compiler candidates to test during installation
Added g++-7 to compiler candidates to test during installation
Tip revision: 6e23cb4
dynamic.py
# extension imports
from _NetworKit import Graph, GraphEvent, DGSStreamParser, GraphUpdater, APSP
def graphFromStream(stream, weighted, directed):
""" Convenience function for creating a new graph from a stream of graph events
Parameters
----------
stream : list of GraphEvent
event stream
weighted : produce a weighted or unweighted graph
boolean
directed : produce a directed or undirected graph
boolean
"""
G = Graph(0, weighted, directed)
gu = GraphUpdater(G)
gu.update(stream)
return G