Helper functions for tethne.networks .
A more specific version of the subdict utility aimed at handling node and edge attribute dictionaries for NetworkX file formats such as gexf (which does not allow attributes to have a list type) by making them writable in those formats
Concatenate list elements pair-wise with the delim character Returns the concatenated list Raises index error if lists are not parallel
Searches list l for a pattern specified in a lambda function f.
Converts ElementTree node to a dictionary.
Parameters : | node : ElementTree node recursive : boolean
|
---|---|
Returns : | dict : nested dictionary.
|