Commit e36cc722 authored by dirk.wintergruen's avatar dirk.wintergruen
Browse files

calctop calculates also edge attributes

parent 8b7840bb
......@@ -1522,27 +1522,30 @@ def calcTopsForYears(
max_len=20,
filter_node=None,
with_value=True,
displayAttr="lastname",
displayAttr="name",
progressBar=None,
displayAttr2="name",
displayAttr2=None,
deleteZero=True,
normalize=None,
mode ="vertex"
**kwargs
):
"""
Calculate for a year network the top vertices for each year with respect to the function func
:param ynw: A dictionary y -> igraph
:param func: A centrality function for a vertex ,defaults to "betweenness"
:param max_len:
:param filter_node:
:param with_value:
:param displayAttr:
:param progressBar:
:param displayAttr2:
:param deleteZero:
:param normalize:
:param kwargs:
:param max_len:Maximal number of entries to be returned
:param func: Centrality function for a vertex, defaults to betweenness, getattr(ng, func)(**kwargs) has to be implemented.
:param filter_node: Filter nodes by attribute values, expects a struct node attribute -> list of allowed values
:param mode: either "vertex" or "edge" defaults to "vertex"
:param with_value: returns also the value of func for each node and vertices if set to true, defaults to true
:param displayAttr: Node attribute to used to identify the node, defaults to "name"
:param displayAttr2: Additional attribute, defaults to None
:param deleteZero: Don't return entries with value 0, defaults to True
:param normalize: Normalize the results, value can be None, mean or median, defaults to None
:param kwargs: kwargs to be passed to the centrality to function see above
:return:
"""
......@@ -1582,6 +1585,7 @@ def calcTopsForYears(
displayAttr2=displayAttr2,
deleteZero=deleteZero,
normalize=normalize,
mode=mode
**kwargs
)
......@@ -1596,6 +1600,7 @@ def calcTopsForYears(
displayAttr2=displayAttr2,
deleteZero=deleteZero,
normalize=normalize,
mode = mode
**kwargs
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment