Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Assigning a symmetric sociomatrix valued edges to an undriected network creates bidirectional edges.

Đang mở
#92 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
r
Lĩnh vực
networking

Hướng nghiên cứu

Run the supplied R reprex and compare the weighted assignment with the same assignment without names.eval. Trace how the symmetric matrix is converted into edges when names.eval is used. Done means the undirected network contains four edges, rather than duplicate bidirectional edges, while retaining the edge weights.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
library(network)

nwu <- network.initialize(4, directed=FALSE)
nwu[,,names.eval="w",add.edges=TRUE] <-
  matrix(c(0,1,2,0,
           1,0,1,3,
           2,1,0,0,
           0,3,0,0),
         4,4,
         byrow=TRUE)
nwu
#>  Network attributes:
#>   vertices = 4 
#>   directed = FALSE 
#>   hyper = FALSE 
#>   loops = FALSE 
#>   multiple = FALSE 
#>   bipartite = FALSE 
#>   total edges= 8 
#>     missing edges= 0 
#>     non-missing edges= 8 
#> 
#>  Vertex attribute names: 
#>     vertex.names 
#> 
#>  Edge attribute names: 
#>     w
as.matrix(nwu, matrix.type = "edgelist")
#>      [,1] [,2]
#> [1,]    2    1
#> [2,]    3    1
#> [3,]    1    2
#> [4,]    3    2
#> [5,]    4    2
#> [6,]    1    3
#> [7,]    2    3
#> [8,]    2    4
#> attr(,"n")
#> [1] 4
#> attr(,"vnames")
#> [1] 1 2 3 4

Created on 2025-03-03 with reprex v2.1.1

Without names.eval, only 4 edges are created.

Ngôn ngữ chính
R
Star
20
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của statnet/network

Tất cả issue của statnet/network

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.