How Igraph handle weights?

前端 未结 2 894
有刺的猬
有刺的猬 2021-01-25 02:44

Good day to everyone.

I have a really simple question that I wasn\'t able to find an answer, because of lack of terminology I am afraid. In r\'s package igraph how are c

2条回答
  •  孤独总比滥情好
    2021-01-25 03:34

    If you have a look at the official documentation in the R igraph package - https://igraph.org/r/doc/strength.html

    you will find that weights are referred to as:

    "Weight vector. If the graph has a weight edge attribute, then this is used by default. If the graph does not have a weight edge attribute and this argument is NULL, then a warning is given and degree is called."

    But also:

    https://igraph.org/r/doc/edge_attr.html

    explains that the edges are given as a weight attribute

提交回复
热议问题