Custom Types¶
Warning
This module is under active development and may change significantly in future versions.
-
class
s2.graph.PaperId¶ A valid S2 Paper Identifier string.
-
class
s2.graph.AuthorId¶ A valid S2 Author Identifier string.
-
class
s2.graph.S2PaperMap¶ MutableMappingofPaperIdtoS2Paper.It is recommended to use objects of type
s2.store.S2DataStore, but for rapid prototyping this can be a simple dictionary.
-
class
s2.graph.S2AuthorMap¶ MutableMappingofAuthorIdtoS2Author.It is recommended to use objects of type
s2.store.S2DataStore, but for rapid prototyping this can be a simple dictionary.
-
class
s2.graph.EdgeType¶ Either of ‘references’, ‘citations’, or ‘author’.
-
class
s2.graph.EdgeMeta¶ Dict for storing any additional edge meta-information.
-
class
s2.graph.Neighbours¶ MutableMappingofEdgeTypeto list of (PaperId,EdgeMeta) tuples for neighbouring papers.
-
class
s2.graph.EdgeMap¶ MutableMappingofPaperIdtoNeighbours.
-
class
s2.graph.HopFrom¶ Tuple of
PaperId(the paper being hopped from) andEdgeType(the type of the edge being hopped across)