@@ -335,16 +335,14 @@ def nodes(self):
335335
336336 @staticmethod
337337 def read_edges (filename , separator = ',' , weight = False , undirected = False ,
338- maxlines = None , expand_sub_paths = True , max_subpath_length = None ):
338+ maxlines = None ):
339339 """
340340 Read path in edgelist format
341341
342342 Reads data from a file containing multiple lines of *edges* of the
343343 form "v,w,frequency,X" (where frequency is optional and X are
344344 arbitrary additional columns). The default separating character ','
345- can be changed. In order to calculate the statistics of paths of any length,
346- by default all subpaths of length 0 (i.e. single nodes) contained in an edge
347- will be considered.
345+ can be changed.
348346
349347 Parameters
350348 ----------
@@ -358,13 +356,8 @@ def read_edges(filename, separator=',', weight=False, undirected=False,
358356 undirected : bool
359357 are the edges directed or undirected
360358 maxlines : int
361- number of lines to read (useful to test large files)
362- expand_sub_paths : bool
363- max_subpath_length : int (default None)
364- maximum length for subpaths to consider, ``None`` means the entire file is
359+ number of lines to read (useful to test large files). None means the entire file is
365360 read
366- TODO: this parameter is unused.
367-
368361 Returns
369362 -------
370363 Paths
@@ -373,7 +366,6 @@ def read_edges(filename, separator=',', weight=False, undirected=False,
373366 p = Paths ()
374367
375368 p .separator = separator
376- p .max_subpath_length = sys .maxsize
377369
378370 with open (filename , 'r' ) as f :
379371 Log .add ('Reading edge data ... ' )
@@ -391,8 +383,7 @@ def read_edges(filename, separator=',', weight=False, undirected=False,
391383
392384 if maxlines is not None and n >= maxlines :
393385 break
394- if expand_sub_paths :
395- p .expand_subpaths ()
386+ p .expand_subpaths ()
396387 Log .add ('finished.' )
397388
398389 return p
0 commit comments