supplier
dsstools.supplier
ElementAttribute(keyword)
Bases: Supplier
Class for graph element values (already set in the graph.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
keyword
|
str
|
the key of the inherent attribute |
required |
Percentile(supplier)
RawDictionary(dictionary)
Bases: Supplier
Assign a dictionary to the graph elements.
This can be a subgraph or a normal graph. The keys must match at least one of the node ids or edge tuples. Example: The dictionaries returned by NetworkX calculations on graphs return suitable dictionaries
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dictionary
|
dict
|
key is GraphElement, value is value to be supplied |
required |
StructuralAttribute(keyword=None, *, reverse=False, alt_nx_calculation=None)
Bases: Supplier
Class for providing structural graph element values.
These are attributes based on the graph structure and need to be calculated.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
keyword
|
Optional[str]
|
the keyword for the calculation |
None
|
reverse
|
bool
|
determines if the calculation should use inverted edge values if True, default False |
False
|
Supplier()
Bases: ABC
Basic interface for supplying graph element values.