Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
window.Graph = graphology;
var randomLayout = graphology.library.layout.random;
var forceAtlas2Layout = graphology.library.layoutForceAtlas2;
window.layout = {
random: randomLayout,
forceAtlas2: forceAtlas2Layout
};
window.ForceAtlas2Layout = graphology.library.FA2Layout;
window.louvain = graphology.library.communitiesLouvain;
// Requiring sigma
window.SigmaWebGLRenderer = require('sigma/renderers/webgl').default;
// Requiring own modules
require('./view_upload/upload.js');
require('./view_board/board.js');
require('./recipes/_recipes_list_.js');
// Declare app level module which depends on views, and components
angular.module('graphrecipes', [
'ngRoute',
'ngMaterial',
'graphrecipes.view_upload',
'graphrecipes.view_board',
'graphrecipes.recipes_list'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/upload'});