History of prosper
The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.
[entries] Add the date when each entry was added, and remove icon_hash beff7c9
The dates are those of the commits that first added the entries' files (2020-08-11 for the entries of the initial commit); renamed entries keep the date of their first name. Changed: none
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 0f9e045..6bce7da 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -33,7 +33,7 @@ The network has the following properties:
tags = ['Social', 'Online', 'Economic', 'Weighted', 'Multigraph', 'Timestamps', 'Metadata']
url = 'http://mlg.ucd.ie/datasets/prosper.html'
citation = [('U. Redmond, P. Cunningham, "A temporal network analysis reveals the unprofitability of arbitrage in The Prosper Marketplace." Expert Systems with Applications 40(9), 3715-3721 (2013)', 'https://doi.org/10.1016/j.eswa.2012.12.077')]
-icon_hash = '57fe73408cf714f319c3ac23'
+date_added = '2020-08-11'
upstream_license = None
upstream_prefix = 'http://mlg.ucd.ie/files/datasets'
files = [('prosper-loans.zip:out.prosper-loans', None, None)]
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) bc3dbbd
The lists of properties at the end of the descriptions marked edge properties with "Edge" but left node properties unmarked, or grouped them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property was often unclear. Every item now starts with (Node), (Edge) or (Graph), followed by the property names, a colon and the explanation, one item per property or group of properties; qualifications (kinds of nodes, networks) follow the names in parentheses. Properties that were only named got a short explanation, and a few items that named the wrong kind of property were corrected.
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index ac015b3..0f9e045 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -25,7 +25,11 @@ description = """A network of loans between the members of Prosper.com, an onlin
The network has the following properties:
-- Edges: `time`, the date when the loan originated, as Unix time (at the resolution of days); `amount`, an amount in US dollars (91% of the values are between 25 and 100 dollars, which suggests that it is the amount lent by the lender rather than the amount requested by the borrower); `status`, the status of the loan when the data were collected (`Paid`, `Current`, `Charge-off`, `Defaulted`, `Late`, `Payoff`, `Repurchased`, `Cancelled`, and the undocumented values `1`, `2`, `3` and `4+`); `lender_rate` and `borrower_rate`, the interest rates of the lender and of the borrower, as fractions; `grade`, the credit grade of the borrower (`AA`, `A` to `E`, `HR` for high risk, and `NC` for no credit score)."""
+- (Edge) `time`: the date when the loan originated, as Unix time (at the resolution of days).
+- (Edge) `amount`: an amount in US dollars (91% of the values are between 25 and 100 dollars, which suggests that it is the amount lent by the lender rather than the amount requested by the borrower).
+- (Edge) `status`: the status of the loan when the data were collected (`Paid`, `Current`, `Charge-off`, `Defaulted`, `Late`, `Payoff`, `Repurchased`, `Cancelled`, and the undocumented values `1`, `2`, `3` and `4+`).
+- (Edge) `lender_rate` and `borrower_rate`: the interest rates of the lender and of the borrower, as fractions.
+- (Edge) `grade`: the credit grade of the borrower (`AA`, `A` to `E`, `HR` for high risk, and `NC` for no credit score)."""
tags = ['Social', 'Online', 'Economic', 'Weighted', 'Multigraph', 'Timestamps', 'Metadata']
url = 'http://mlg.ucd.ie/datasets/prosper.html'
citation = [('U. Redmond, P. Cunningham, "A temporal network analysis reveals the unprofitability of arbitrage in The Prosper Marketplace." Expert Systems with Applications 40(9), 3715-3721 (2013)', 'https://doi.org/10.1016/j.eswa.2012.12.077')]
[entries] Remove unneeded code from the entries 2c69f19
Unneeded "global files" statements, unused imports and variables, f-strings without placeholders, duplicate keys in foodweb_little_rock (keeping the order and the values used), and the second definition of get_lines() in twitter_higgs. Nothing changes in the networks or descriptions. Changed: none
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index e7dc676..ac015b3 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -42,7 +42,6 @@ def fetch_upstream(force=False):
@coerce_props()
@annotate()
def parse(alts=None):
- global files
name = __name__.split(".")[-1]
for fnames, alt, fmt in files:
if alts is not None and alt not in alts:
[entries] Remove the mentions of KONECT from the descriptions of edit_wikibooks, edit_wikinews, edit_wikipedia, edit_wikiquote, edit_wiktionary, linux, prosper, reactome, unicodelang, wiki_categories, wiki_link_dyn, wikipedia_link and wordnet 2216557
These entries were originally taken from KONECT and now download their data from the original sources, so their descriptions no longer refer to KONECT.
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index cfc3c89..e7dc676 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -25,7 +25,7 @@ description = """A network of loans between the members of Prosper.com, an onlin
The network has the following properties:
-- Edges: `time`, the date when the loan originated, as Unix time (at the resolution of days); `amount`, an amount in US dollars (KONECT describes it as the amount requested, but 91% of the values are between 25 and 100 dollars, which suggests that it is the amount lent by the lender); `status`, the status of the loan when the data were collected (`Paid`, `Current`, `Charge-off`, `Defaulted`, `Late`, `Payoff`, `Repurchased`, `Cancelled`, and the undocumented values `1`, `2`, `3` and `4+`); `lender_rate` and `borrower_rate`, the interest rates of the lender and of the borrower, as fractions; `grade`, the credit grade of the borrower (`AA`, `A` to `E`, `HR` for high risk, and `NC` for no credit score)."""
+- Edges: `time`, the date when the loan originated, as Unix time (at the resolution of days); `amount`, an amount in US dollars (91% of the values are between 25 and 100 dollars, which suggests that it is the amount lent by the lender rather than the amount requested by the borrower); `status`, the status of the loan when the data were collected (`Paid`, `Current`, `Charge-off`, `Defaulted`, `Late`, `Payoff`, `Repurchased`, `Cancelled`, and the undocumented values `1`, `2`, `3` and `4+`); `lender_rate` and `borrower_rate`, the interest rates of the lender and of the borrower, as fractions; `grade`, the credit grade of the borrower (`AA`, `A` to `E`, `HR` for high risk, and `NC` for no credit score)."""
tags = ['Social', 'Online', 'Economic', 'Weighted', 'Multigraph', 'Timestamps', 'Metadata']
url = 'http://mlg.ucd.ie/datasets/prosper.html'
citation = [('U. Redmond, P. Cunningham, "A temporal network analysis reveals the unprofitability of arbitrage in The Prosper Marketplace." Expert Systems with Applications 40(9), 3715-3721 (2013)', 'https://doi.org/10.1016/j.eswa.2012.12.077')]
[entries] Merge duplicate entries and add cross-references between related ones 9bc6033
- Removed duplicates, merged into the entries holding the same data: dblp_coauthor_snap (soc_net_comms), cattle and bison (dom; bison's breeding data move there, as do the wolves' age and sex), football_tsevans (football, with both conference assignments), eu_procurements_alt (eu_procurements), foursquare_friendships (foursquare_global). - software_dependencies: colt and scolt are one network; ambassador: the duplicate 2001 network is dropped and the three same-edge networks combined; dom: the dataset count corrected (436). - macaque_neural: Young's 71-area network added (young71; the 47-area one is now cocomac47), both from archived copies. - collins_yeast, celegans_interactomes: from archived copies of the dead CCSB site (byte-identical files). - Cross-references between entries holding versions of the same data (food webs, Wikipedia, Slashdot, physicians, SNAP/Mislove, CCSB). - ICON ids of duplicate records added; macaque_neural's corrected. - prosper, dbpedia_all: string properties given in edge-index order (needs graph-tool with the fixed vals ordering).
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 115f2df..cfc3c89 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -57,11 +57,8 @@ def parse(alts=None):
g.add_edge_list(df[[0, 1]].to_numpy())
g.ep.time = g.new_ep("int64_t", vals=df[3].to_numpy())
g.ep.amount = g.new_ep("double", vals=df[4].to_numpy())
- # the values of non-scalar properties are assigned in the order of
- # g.edges(), which is not the order of the edge indices
- eidx = g.get_edges([g.edge_index])[:, 2]
- g.ep.status = g.new_ep("string", vals=df[5].to_numpy()[eidx])
+ g.ep.status = g.new_ep("string", vals=df[5].to_numpy())
g.ep.lender_rate = g.new_ep("double", vals=df[6].to_numpy())
g.ep.borrower_rate = g.new_ep("double", vals=df[7].to_numpy())
- g.ep.grade = g.new_ep("string", vals=df[8].to_numpy()[eidx])
+ g.ep.grade = g.new_ep("string", vals=df[8].to_numpy())
yield alt, g
[entries] Move KONECT-derived entries to their original sources 45943ea
The entries now download the data from where KONECT obtained them (live or via the Wayback Machine), gaining the metadata KONECT dropped (names, identifiers, timestamps, attributes), with descriptions and citations rewritten from the original sources: - Ma'ayan lab collection: faa_routes, foodweb_little_rock (taxon names were assigned to the wrong nodes), interactome_pdz, interactome_figeys, interactome_stelzl, interactome_vidal - Pajek collection and primary sources: word_assoc (from the Edinburgh Associative Thesaurus; KONECT dropped all counts >= 10), foldoc, new_guinea_tribes - bitriad: elite, ceo_club (adds the CEO KONECT's copy lacked) - Lovro Subelj: cora, euroroad (adds isolated cities and parallel roads) - SNAP: elec (all votes, with elections and nominators) - Zenodo: wiki_talk (user ids and roles) - MPI-SWS: flickr_growth, facebook_wall (edges now point from poster to wall owner, as documented), wikipedia_growth (full timestamps) - Other sources: prosper, jester, reactome (the 2014 release KONECT used), unicodelang (CLDR 27), wordnet (WordNet 3.1), chicago_road (TNTP ChicagoRegional)
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 99eea05..115f2df 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -18,15 +18,21 @@
from .. import *
-title = "Prosper user loans (2016)"
-description = """A network of loans between users on prosper.com, a pear-to-pear lending marketplace. Edge direction (i, j) denotes person i loaned money to person j.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
-tags = ['Social', 'Online', 'Unweighted']
-url = 'http://konect.cc/networks/prosper-loans'
-citation = [('J. Kunegis, "Prosper loans." KONECT, the Koblenz Network Collection (2016)', 'https://doi.org/10.1145/2487788.2488173')]
+import pandas
+
+title = "Prosper user loans (2005-2011)"
+description = """A network of loans between the members of Prosper.com, an online peer-to-peer lending marketplace, from November 2005 to September 2011, compiled by U. Redmond and P. Cunningham. On Prosper, borrowers post listings requesting loans, and lenders bid on them; a listing becomes a loan if the requested amount is fully funded by the lenders. Each directed edge goes from a lender to a borrower, and represents the participation of the lender in a loan to the borrower; a single loan therefore appears as several edges, one per lender. Repeated edges between the same lender and borrower are kept. Users are identified only by anonymous numbers.
+
+The network has the following properties:
+
+- Edges: `time`, the date when the loan originated, as Unix time (at the resolution of days); `amount`, an amount in US dollars (KONECT describes it as the amount requested, but 91% of the values are between 25 and 100 dollars, which suggests that it is the amount lent by the lender); `status`, the status of the loan when the data were collected (`Paid`, `Current`, `Charge-off`, `Defaulted`, `Late`, `Payoff`, `Repurchased`, `Cancelled`, and the undocumented values `1`, `2`, `3` and `4+`); `lender_rate` and `borrower_rate`, the interest rates of the lender and of the borrower, as fractions; `grade`, the credit grade of the borrower (`AA`, `A` to `E`, `HR` for high risk, and `NC` for no credit score)."""
+tags = ['Social', 'Online', 'Economic', 'Weighted', 'Multigraph', 'Timestamps', 'Metadata']
+url = 'http://mlg.ucd.ie/datasets/prosper.html'
+citation = [('U. Redmond, P. Cunningham, "A temporal network analysis reveals the unprofitability of arbitrage in The Prosper Marketplace." Expert Systems with Applications 40(9), 3715-3721 (2013)', 'https://doi.org/10.1016/j.eswa.2012.12.077')]
icon_hash = '57fe73408cf714f319c3ac23'
-upstream_prefix = 'http://konect.cc/files'
-files = [('download.tsv.prosper-loans.tar.bz2', None, 'konect')]
+upstream_license = None
+upstream_prefix = 'http://mlg.ucd.ie/files/datasets'
+files = [('prosper-loans.zip:out.prosper-loans', None, None)]
def fetch_upstream(force=False):
return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
@@ -41,9 +47,21 @@ def parse(alts=None):
for fnames, alt, fmt in files:
if alts is not None and alt not in alts:
continue
- if isinstance(fnames, str):
- fnames = [fnames]
- with ExitStack() as stack:
- fs = [stack.enter_context(open_upstream_file(name, fn, "rb")) for fn in fnames]
- g = parse_graph(fs, fmt, directed=True)
+ # columns: lender, borrower, 1, time, amount, status, lender rate,
+ # borrower rate, grade
+ with open_upstream_file(name, fnames, "r") as f:
+ df = pandas.read_csv(f, sep=r"\s+", comment="%", header=None,
+ dtype={5: str, 8: str})
+ g = Graph(directed=True)
+ g.add_vertex(int(max(df[0].max(), df[1].max())) + 1)
+ g.add_edge_list(df[[0, 1]].to_numpy())
+ g.ep.time = g.new_ep("int64_t", vals=df[3].to_numpy())
+ g.ep.amount = g.new_ep("double", vals=df[4].to_numpy())
+ # the values of non-scalar properties are assigned in the order of
+ # g.edges(), which is not the order of the edge indices
+ eidx = g.get_edges([g.edge_index])[:, 2]
+ g.ep.status = g.new_ep("string", vals=df[5].to_numpy()[eidx])
+ g.ep.lender_rate = g.new_ep("double", vals=df[6].to_numpy())
+ g.ep.borrower_rate = g.new_ep("double", vals=df[7].to_numpy())
+ g.ep.grade = g.new_ep("string", vals=df[8].to_numpy()[eidx])
yield alt, g
Update copyright information 73a4f0d
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 7a71baa..99eea05 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2020-2024 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
Update copyright information 3d288ea
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 9c0746c..7a71baa 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2020-2023 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2024 Tiago de Paula Peixoto <tiago@skewed.de>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
Update copyright information 8d005ae
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 632ebab..9c0746c 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2021 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2023 Tiago de Paula Peixoto <tiago@skewed.de>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
Update copyright info db2efcc
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 3fab887..632ebab 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2021 Tiago de Paula Peixoto <tiago@skewed.de>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
Un-orphan KONECT datasets 894eba5
KONECT has been brought back from the dead for the time being.
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index db66006..3fab887 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -26,7 +26,6 @@ url = 'http://konect.cc/networks/prosper-loans'
citation = [('J. Kunegis, "Prosper loans." KONECT, the Koblenz Network Collection (2016)', 'https://doi.org/10.1145/2487788.2488173')]
icon_hash = '57fe73408cf714f319c3ac23'
upstream_prefix = 'http://konect.cc/files'
-orphan = True
files = [('download.tsv.prosper-loans.tar.bz2', None, 'konect')]
def fetch_upstream(force=False):
Update citations to use DOIs e878874
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 7507434..db66006 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -23,7 +23,7 @@ description = """A network of loans between users on prosper.com, a pear-to-pear
[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Online', 'Unweighted']
url = 'http://konect.cc/networks/prosper-loans'
-citation = [('J. Kunegis, "Prosper loans." KONECT, the Koblenz Network Collection (2016)', 'http://konect.cc/networks/prosper-loans')]
+citation = [('J. Kunegis, "Prosper loans." KONECT, the Koblenz Network Collection (2016)', 'https://doi.org/10.1145/2487788.2488173')]
icon_hash = '57fe73408cf714f319c3ac23'
upstream_prefix = 'http://konect.cc/files'
orphan = True
Add support for 'orphan' datasets and tag konect entries e330b80
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 49a1f3d..7507434 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -26,6 +26,7 @@ url = 'http://konect.cc/networks/prosper-loans'
citation = [('J. Kunegis, "Prosper loans." KONECT, the Koblenz Network Collection (2016)', 'http://konect.cc/networks/prosper-loans')]
icon_hash = '57fe73408cf714f319c3ac23'
upstream_prefix = 'http://konect.cc/files'
+orphan = True
files = [('download.tsv.prosper-loans.tar.bz2', None, 'konect')]
def fetch_upstream(force=False):
Change license from GPLv3 to AGPLv3 d754be5
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index 052daf5..49a1f3d 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -3,18 +3,18 @@
#
# Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU Affero General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
from .. import *
Add explicit attribution to descriptions obtained from ICON 1645314
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
index bf8fbe4..052daf5 100644
--- a/entries/prosper/__init__.py
+++ b/entries/prosper/__init__.py
@@ -19,7 +19,8 @@
from .. import *
title = "Prosper user loans (2016)"
-description = "A network of loans between users on prosper.com, a pear-to-pear lending marketplace. Edge direction (i, j) denotes person i loaned money to person j."
+description = """A network of loans between users on prosper.com, a pear-to-pear lending marketplace. Edge direction (i, j) denotes person i loaned money to person j.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
tags = ['Social', 'Online', 'Unweighted']
url = 'http://konect.cc/networks/prosper-loans'
citation = [('J. Kunegis, "Prosper loans." KONECT, the Koblenz Network Collection (2016)', 'http://konect.cc/networks/prosper-loans')]
Initial commit cc85872
diff --git a/entries/prosper/__init__.py b/entries/prosper/__init__.py
new file mode 100644
index 0000000..bf8fbe4
--- /dev/null
+++ b/entries/prosper/__init__.py
@@ -0,0 +1,48 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = "Prosper user loans (2016)"
+description = "A network of loans between users on prosper.com, a pear-to-pear lending marketplace. Edge direction (i, j) denotes person i loaned money to person j."
+tags = ['Social', 'Online', 'Unweighted']
+url = 'http://konect.cc/networks/prosper-loans'
+citation = [('J. Kunegis, "Prosper loans." KONECT, the Koblenz Network Collection (2016)', 'http://konect.cc/networks/prosper-loans')]
+icon_hash = '57fe73408cf714f319c3ac23'
+upstream_prefix = 'http://konect.cc/files'
+files = [('download.tsv.prosper-loans.tar.bz2', None, 'konect')]
+
+def fetch_upstream(force=False):
+ return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+ force)
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+ global files
+ name = __name__.split(".")[-1]
+ for fnames, alt, fmt in files:
+ if alts is not None and alt not in alts:
+ continue
+ if isinstance(fnames, str):
+ fnames = [fnames]
+ with ExitStack() as stack:
+ fs = [stack.enter_context(open_upstream_file(name, fn, "rb")) for fn in fnames]
+ g = parse_graph(fs, fmt, directed=True)
+ yield alt, g