Skip to content

Added attribute, coordinates to node using R #24

@SaharanAbhishek

Description

@SaharanAbhishek

Suppose I have below dataframe for nodes:

Node ID xAxis yAxis Name City
1 0 10 20 John New York
2 1 11 21 Peter Paris
3 2 12 22 Tom London
4 3 13 23 Sam Los Angeles
5 4 14 24 Jack Tokyo

for edges

Edge Source Target
1 0 1
2 0 3
3 1 4
4 1 2
5 2 3
6 3 1
7 4 4

In javascript case (I have JSON instead of dataframe in this case), first I will loop through all nodes and create object for each node with attribute and then push same to nodes array, same for edges.

Now want to achive same through R.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions