Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for adjacency matrix files with node labels on the first line #158

Open
oxy86 opened this issue Dec 5, 2024 · 0 comments
Open
Assignees

Comments

@oxy86
Copy link
Member

oxy86 commented Dec 5, 2024

SocNetV should support adjacency matrix files with node labels on the first line, like this one:

# Alice, Bob, Charlie
0, 1, 1
1, 0, 0
1, 0, 0

In this example:

  • The first line is a comment containing the node labels: Alice, Bob, Charlie. The line MUST be a comment (the '#' char should be automatically removed from the label by the program).
  • The remaining lines form a 3x3 adjacency matrix where:
    • Row 1 corresponds to Alice
    • Row 2 corresponds to Bob
    • Row 3 corresponds to Charlie
  • A "1" indicates an edge (e.g., Alice is connected to Bob and Charlie).
  • A "0" indicates no edge (e.g., Bob is not connected to Charlie).
@oxy86 oxy86 self-assigned this Dec 5, 2024
@oxy86 oxy86 changed the title Add support for adjacency matrix files with node labels on the first line Support for adjacency matrix files with node labels on the first line Dec 5, 2024
oxy86 added a commit that referenced this issue Dec 5, 2024
…iles. The line must be a comment. The comment character (#) is stripped from the label line to avoid polluting node labels.

- Closes #158. [gha]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant