This interactive Neo4j graph tutorial covers how to use graph analysis to find software modules that are highly centralized, making good candidates to be decomposed into microservices.
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
@EnableWebMvc | |
@Configuration | |
public class WebConfig extends WebMvcConfigurerAdapter { | |
@Override | |
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { | |
messageConverters.add(createXmlHttpMessageConverter()); | |
messageConverters.add(new MappingJackson2HttpMessageConverter()); | |
super.configureMessageConverters(converters); |
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
// Teams | |
CREATE (accountsTeam:Team { name: "Accounts team" }) | |
CREATE (inventoryTeam:Team { name: "Inventory team" }) | |
// Services | |
CREATE (accountingService:Service { name: "Accounting Service"}) | |
CREATE (inventoryService:Service { name: "Inventory Service"}) | |
CREATE (shippingService:Service { name: "Shipping Service"}) | |
// Resources |
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
package org.mazerunner.core.programs | |
import org.apache.spark.graphx.{Graph, EdgeTriplet, VertexId} | |
import org.mazerunner.core.abstractions.PregelProgram | |
/** | |
* @author kbastani | |
* The [[MaximumValueProgram]] is an example graph algorithm implemented on the [[PregelProgram]] | |
* abstraction. | |
*/ |
+------------------------------------------------------------------------------------------------------------------------------------------------+
| show | cast | people |
+------------------------------------------------------------------------------------------------------------------------------------------------+
| "Cold Case" | ["Claire Coffee","Bree Turner","Silas Weir Mitchell (actor)","Bitsie Tulloch","David Giuntoli"] | 5 |
| "CSI: Miami" | ["Norberto Barba","Claire Coffee","Sasha Roiz","Silas Weir Mitchell (actor)"] | 4 |
| "Law & Order: Special Victims Unit" | ["Kate Burton (actress)","Norberto Barba","Silas Weir Mitchell (actor)","Russell Hornsby"] | 4 |
| "The West Wing" | ["Marc Buckland","Kate Burton (actress)","Claire Coffee","Bitsie Tulloch"]
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
= Entitlements and Access Control Management | |
:neo4j-version: 2.2.0 | |
:author: Kenny Bastani | |
:twitter: @kennybastani | |
:description: Graph database access control, entitlements, authorization solutions | |
:tags: domain:finance, use-case:access-control | |
This interactive Neo4j graph tutorial covers entitlements and access control scenarios. | |
''' |
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
/** | |
* Copyright (C) 2014 Kenny Bastani | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License | |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
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
/* | |
* Cypher query: | |
* MATCH p=(michael:Person { name: "Michael" })-[r:LIKES]->(people) | |
* WHERE r.weight >= 5 | |
* RETURN p | |
*/ | |
Transaction tx = db.beginTx(); | |
Node michael = db.findNodesByLabelAndProperty(DynamicLabel.label("Person"), "name", "Michael").iterator().next(); |
Unlike choropleth maps, cartograms encode data using area rather than color, resulting in distorted geographic boundaries. In this example, states are rescaled around their centroid, preserving local shape but not topology. Inspired by Zachary Johnson. Non-continguous cartogram design invented by Judy Olsen. U.S. state and county boundaries from the U.S. Census Bureau, simplified using GDAL and MapShaper.
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
-s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin |