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
// Set DSE Graph to Development mode | |
schema.config().option('graph.schema_mode').set('Development') | |
// Remove myself (the ego vertex) for demonstration purposes since I am connected to everyone | |
g.V().has('screen_name', 'bobbriody').drop() | |
// Graph Size | |
long vertexCount = g.V().hasLabel('user').count().next() | |
long edgeCount = g.E().hasLabel('follows').count().next() | |
'Vertices: ' + vertexCount + '\nEdges: ' + edgeCount |
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
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.9.0/vis.min.js"></script> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.9.0/vis.min.css" rel="stylesheet" type="text/css"/> | |
</head> | |
<body> | |
<div id="mynetwork"></div> | |
<script type="text/javascript"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Apache TinkerPop</title> | |
<meta name="description" content="A Graph Computing Framework"> | |
<meta name="author" content="Apache TinkerPop"> |
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
<!-- START SIGMA IMPORTS --> | |
<script src="../src/sigma.core.js"></script> | |
<script src="../src/conrad.js"></script> | |
<script src="../src/utils/sigma.utils.js"></script> | |
<script src="../src/utils/sigma.polyfills.js"></script> | |
<script src="../src/sigma.settings.js"></script> | |
<script src="../src/classes/sigma.classes.dispatcher.js"></script> | |
<script src="../src/classes/sigma.classes.configurable.js"></script> | |
<script src="../src/classes/sigma.classes.graph.js"></script> | |
<script src="../src/classes/sigma.classes.camera.js"></script> |
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
var jLouvain = function () { | |
//Constants | |
var __PASS_MAX = -1 | |
var __MIN = 0.0000001 | |
//Local vars | |
var original_graph_nodes; | |
var original_graph_edges; | |
var original_graph = {}; | |
var partition_init; |
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
#!/bin/bash | |
# Definitely make sure you create a directory to run this in. | |
# Set this to match the mongodb link for your architecture | |
# http://www.mongodb.org/downloads | |
# arch="linux-i686" | |
# arch="osx-x86_64" | |
arch="linux-x86_64" |