Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="application/javascript">
- sigma.neo4j.cypher(
- { url: 'http://192.168.0.20:3306', user: 'root', password: '1234' },
- 'MATCH (n) OPTIONAL MATCH (n)-[r]->(m) RETURN n,r,m LIMIT 100',
- { container: 'graph-container' } ,
- function(s) {
- console.log('Number of nodes :'+ s.graph.nodes().length);
- console.log('Number of edges :'+ s.graph.edges().length);
- }
- );
- // Calling neo4j to get all its relationship type
- sigma.neo4j.getTypes(
- { url: 'http://192.168.0.20:3306', user: 'root', password: '1234' },
- function(types) {
- console.log("Relationship types" + types);
- }
- );
- // Calling neo4j to get all its node label
- sigma.neo4j.getLabels(
- { url: 'http://192.168.0.20:3306', user: 'root', password: '1234' },
- function(labels) {
- console.log("Node labels" + labels);
- }
- );
Add Comment
Please, Sign In to add comment