Home | Trees | Index | Help |
---|
Package netconv :: Module network :: Class Network |
|
Stores information of network
Methods for importing/exporting network are providedMethod Summary | |
---|---|
| |
Converts attributes to cluster | |
Converts cluster info to attributes | |
Finds node by Id | |
Finds node by name | |
reads the network from a list of interactions. | |
Returns a list with all nodes names. | |
Return generic attribute for the network | |
Converts pajek node positions (range from 0 to 1) to graph position | |
Converts node positions to pajek format (range from 0 to 1) | |
Cleans the network | |
Defines generic attribute for the network | |
Converts the network to a list of interactions. |
Instance Variable Summary | |
---|---|
str |
coordsModel : set the model used to store network coords |
Method Details |
---|
__init__(self,
nnodes=0,
nedges=0)
|
attributes2Cluster(self, attr=('cluster', 'cluster'))Converts attributes to cluster
|
cluster2Attributes(self, attr=('cluster', 'cluster'), s='')Converts cluster info to attributes
|
findId(self, id)Finds node by Id
|
findNode(self, node)Finds node by name
|
fromList(self, list, nodesList=None)reads the network from a list of interactions.
|
getAllNodes(self)Returns a list with all nodes names. |
getAttribute(self, attr, attribs=None)
|
pajek2pos(self, mult)Converts pajek node positions (range from 0 to 1) to graph position
|
pos2pajek(self)Converts node positions to pajek format (range from 0 to 1) |
reset(self)Cleans the network |
setAttribute(self, attr, value, attribs=None)Defines generic attribute for the network
|
toList(self)Converts the network to a list of interactions.
|
Instance Variable Details |
---|
coordsModelset the model used to store network coords
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Aug 30 11:04:15 2005 | http://epydoc.sf.net |