Skip to content

Allow multi-valued attributes#8

Open
nikb99 wants to merge 2 commits into
frankkramer-lab:masterfrom
nikb99:multi-valued-attributes
Open

Allow multi-valued attributes#8
nikb99 wants to merge 2 commits into
frankkramer-lab:masterfrom
nikb99:multi-valued-attributes

Conversation

@nikb99

@nikb99 nikb99 commented Mar 19, 2026

Copy link
Copy Markdown

I made some changes to support multi-valued attributes in nodes and edges.
In the addNode/addEdge functions it is ensured that empty list-type attributes default to NULL instead of NA for new elements because igraph defaults to NA if no explicit values are specified.

usage:
addNode(g , "n1" , layer="l1" , attributes=list(xrefs=list(c("DB1:ID1", "DB2:ID2"))))

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

Successfully merging this pull request may close these issues.

1 participant