problem with output when using networkdynamic
まだ誰も着手していません。
評価
調査の方向性
Load issued_networkdynamic.RData and reproduce the networkDynamic() construction using dynamic_edge, dynamic_node, and net. Inspect the result with as.data.frame(dynet), timeline(dynet), and reconcile.edge.activity(); done means identifying why the extra edges appear and documenting or correcting the behavior.
索引モデルが issue の本文から書いたものです。
説明
Hi,
I am faced a problem with networkdynamic output: 30 new edges have been added to my network while they did not exist in the original edgelist. And, I don't know why.
For instance, in the original dynamic edgelist used to produced a dynamic network, the vertex 24 is connected to vertex 1 through one edge. This connection last fron step 5 to step 6.
| onset | terminus | tail | head | onset.censored | terminus.censored | duration | |
|---|---|---|---|---|---|---|---|
| 115 | 5.00 | 6.00 | 1 | 24 | TRUE | TRUE | 1.00 |
But, after I created my dynamic network with networkdynamic, three news edges have been created betweent node 24 and nodes 3, 9, 13.
| onset | terminus | tail | head | onset.censored | terminus.censored | duration | edge.id | |
|---|---|---|---|---|---|---|---|---|
| 1 | 0.00 | 33.00 | 3.00 | 24.00 | TRUE | TRUE | 33.00 | 44.00 |
| 2 | 0.00 | 33.00 | 9.00 | 24.00 | TRUE | TRUE | 33.00 | 112.00 |
| 3 | 0.00 | 33.00 | 13.00 | 24.00 | TRUE | TRUE | 33.00 | 161.00 |
| 4 | 5.00 | 6.00 | 1.00 | 24.00 | FALSE | FALSE | 1.00 | 286.00 |
Here is my code:
load("issued_networkdynamic.RData")
static_node <- static_node[,0:2]
net <- network(static_edge,
vertex.attr = static_node,
directed = TRUE,
bipartite = FALSE,
multiple = FALSE,
loops = FALSE
)
dynamic_edge <- dynamic_edge[,0:7]
dynet <- networkDynamic(
net,
edge.spells = dynamic_edge,
vertex.spells = dynamic_node,
#create.TEAs = TRUE
)
# Here we can see that there are 30 new edges => why ?
t <- as.data.frame(dynet)
timeline(dynet)
# reconcile.edge.activity allows to correct conflicts between edges and vertices, but there are still edges which did not exist in the original edgelist
reconcile.edge.activity(net = dynet, mode = "reduce.to.vertices", active.default = TRUE)
render.d3movie(dynet,
animation.mode='kamadakawai',
usearrows = T,
displaylabels = T, label= "vertex.id")
And data can be found here : https://github.com/luneauaymeric/dynamic_graph_with_ndtv/blob/main/issued_networkdynamic.RData
- 主要言語
- R
- スター
- 12
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
statnet/networkDynamic のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
statnet/networkDynamic#26 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
statnet/networkDynamic#14 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
statnet/networkDynamic#11 · コメント 6 件 · リアクション 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
statnet/networkDynamic#9 · コメント 4 件 ·
statnet/networkDynamic の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
inbo/erl-butterflies-2025#26 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
RConsortium/submissions-pilot7-synthetic-data#95 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
philchalmers/SimDesign#105 ·