taowenmicro / ggClusterNet

Microbial ecological network visualization clustering
93 stars 44 forks source link

A question about within_module_degree() function in ggClusterNet/R/module.roles.R  #1

Open HuTianlong1994 opened 2 years ago

HuTianlong1994 commented 2 years ago

I use the function within_module_degree() to calculate the within modular degree of each node, but when I check the details of this function, I find decompose.graph() was used to decompose the graph. Why decompose.graph() is used here? *decompose.graph() get subgraphs without links between each subgraph. So, the calculated degree of each node is not within modular degree, but within connected subgraph degree. Is there anything wrong? Look forward to your replay.

xph007 commented 2 years ago

Thank you for your support for "ggClusterNet", but the function you mentioned didn't belong to  "ggClusterNet".

------------------ 原始邮件 ------------------ 发件人: "taowenmicro/ggClusterNet" @.>; 发送时间: 2022年3月10日(星期四) 上午9:49 @.>; @.***>; 主题: [taowenmicro/ggClusterNet] A question about within_module_degree() function in ggClusterNet/R/module.roles.R  (Issue #1)

I use the function within_module_degree() to calculate the within modular degree of each node, but when I check the details of this function, I find decompose.graph() was used to decompose the graph. Why decompose.graph() is used here? decompose.graph() get subgraphs without links between each subgraph. So, the calculated degree of each node is not within modular degree, but within connected subgraph degree. Is there anything wrong? Look forward to your replay.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.Message ID: @.***>

HuTianlong1994 commented 2 years ago

The function "within_module_degree()" is in "ggClusterNet/R/module.roles.R" line73