Created
November 2, 2010 01:24
-
-
Save maiha/659148 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
import sc.ala.neo4j.Neo | |
new Neo("/tmp/neo1") { W{ | |
N("中国") --> "牽制" --> N("日本") <-- "牽制" <-- N("ロシア") | |
N("アメリカ") --> "擁護" --> N("日本") | |
}} |
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
% neo /tmp/neo1 edges | |
[1:中国] --(牽制)--> [2:日本] | |
[3:ロシア] --(牽制)--> [2:日本] | |
[4:アメリカ] --(擁護)--> [2:日本] | |
% neo /tmp/neo1 path 中国 ロシア 牽制 | |
loading current nodes...done [0.0] | |
1:中国 | |
2:日本 | |
3:ロシア |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment