Constructing intersection
The command below generates a network containing all matching edges between demo_1
and demo_2
. By using the -w
flag, mako is told to ignore whether edges have matching edge weights or not. The command below omits this, so edges are only considered part of an intersection if they have the same edge weight.
mako netstats -fp . -cf
If you access the Neo4j Browser (http://localhost:7475/browser/) and run the following query, you should be able to access all the edges part of sets:
MATCH p=(n:Set)--() RETURN p LIMIT 50
The query MATCH p=(n:Set)–() RETURN p LIMIT 50
returns 50 patterns consisting of Set nodes connected to any other node. Set nodes can only be connected to Edge nodes, so only Edge nodes part of that particular set are returned in addition to the Set nodes themselves. In this example, the Intersection node connects to the two Edge nodes found in both networks (Figure 3).