Created
October 17, 2017 10:17
-
-
Save dvas0004/7a52b8ae48c3c2572023221f17c58b31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal_nodes = ["192.168.1.1","192.168.2.1"...] //sample data - in reality you'd probably get this from an API | |
cytoscape_elements = []; | |
internal_nodes.forEach(function(element){ | |
cytoscape_elements.push({ | |
data: { | |
id: element, | |
label: element, | |
backgroundColor: "internal" | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment