Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-08-2020 08:32 AM
Hello,
I am new with graph data base and i will choosing a solution for my project.
I will have 3 levels of representation.
Context :
We have a graph that represent all the processes of my apps and relationships between them (lowest level 1), a VM contains several process (level 2), and VMs are in Clusters (level 3), and several clusters represents an application (level 4).
My question is : Can I filter in the visualization the different level ? Processes and their relationships, the next level ==> VMs with their relationships, and clusters/apps.
And can we personalize the display of the graph (color node) according to some rules ?
I know it sounds weird as question but i'm starting with this concept.
Solved! Go to Solution.
01-17-2020 12:18 AM
I do not see any big problem
I have implemented the same as POC
Dataset: Create csv file with name as Book2.csv
Load the data into Neo4j
LOAD CSV with headers FROM 'file:///community/Book3.csv' AS CT
MERGE (vm:VM {name : CT.VM
})
MERGE (ppro:Process{name : CT.Pprocess})
MERGE (cpro:Process{name : CT.Cprocess})
MERGE (ppro)-[calls:CALLS]->(cpro)
MERGE (vm)-[child:CHILD]->(ppro)
Create to parameters:
:param from:'VM1'
:param to:'VM3'
Path:
Match p=(vm :VM {name:$from})-[:CHILD]->(pro:Process)-[call:CALLS*]->(ppro:Process)<-[:CHILD]-(v:VM {name:$to})
return p
01-08-2020 09:37 AM
Hello Madiskou,
Welcome to the community,
Regards
Vivek
01-09-2020 12:33 AM
Hello vivek,
Thank you for your answer.
I have not yet a graph, i am in the step of choosing if i use Neo4j or not. In the picture above i make a graph for explaining th requirements.
I have a processes and theirs relationships, the processes are in the VMs ==> clusters ==> Apps.
I want to know if i can move from processes level to Vm level, cluster level, apps level?
Regards
Télécharger Outlook pour Android
01-09-2020 12:42 AM
Hello vivek,
Thank you for your answer.
I have not yet a graph, i am in the step of choosing if i use Neo4j or not. In the picture above i make a graph for explaining th requirements.
I have a processes and theirs relationships, the processes are in the VMs ==> clusters ==> Apps.
I want to know if i can move from processes level to Vm level, cluster level, apps level?
Regards
01-09-2020 04:22 AM
Is this is you are constructing? If yes then what will be relationships between respective hierarchy that is how with which relationship Apps/VM/Cluster/Processes are joined?
regards
Vivek
01-09-2020 05:32 AM
I will explain the context.
This application is used to a have dependency mapping between Processes, so when we have a problem with a Process, we can see the dependencies with other processes (which implies dependencies between VMs/Clusters and Apps).
I will have at first a graph of Processesand their relationships (ex: Process1 -- Call --> Process2 / Process1 --Call--> Process3 / Process2 --Call--> Process4 ...). I will have an information that indicates that the Process1 is in the VM1 in the Cluster1in the App1.
what i want is if i can switch in the browser from the graph of Process to the graph of VMs ...
01-09-2020 08:49 AM
You do not need to have disassociated graphs. You can create a graph as i have shown you above in that there will be 2 kinds of relationship
Where as if you still see that disassociated graph is only option then I am afraid we can not have query to join them, ie., cannot traverse between different kind of label if they are disassociated.
Regards
vivek
01-10-2020 05:14 AM
Thank you for your answers because they help me to move forward in my reflection. Effectively its not the only option to dissociate the graphs (it was just a vision of the solution) and i agree that it is better to have the same graph.
In my case i construct the graph from the lowest level "Process" ( I have the processes and their relationships basically).
So now my question is (in the image below) :
Is there a way to have the relation between the 2 VM (the dotted line), from the process relationships (in this case: P1 --CALL--> P3 so VM1 --Call--> VM2) ?
Regards
Mahdi
01-17-2020 12:18 AM
I do not see any big problem
I have implemented the same as POC
Dataset: Create csv file with name as Book2.csv
Load the data into Neo4j
LOAD CSV with headers FROM 'file:///community/Book3.csv' AS CT
MERGE (vm:VM {name : CT.VM
})
MERGE (ppro:Process{name : CT.Pprocess})
MERGE (cpro:Process{name : CT.Cprocess})
MERGE (ppro)-[calls:CALLS]->(cpro)
MERGE (vm)-[child:CHILD]->(ppro)
Create to parameters:
:param from:'VM1'
:param to:'VM3'
Path:
Match p=(vm :VM {name:$from})-[:CHILD]->(pro:Process)-[call:CALLS*]->(ppro:Process)<-[:CHILD]-(v:VM {name:$to})
return p
01-16-2020 10:02 PM
Hi @madiskou,
Yes you perform many things at the visualisation level, depends upon the application your are using.
Below is the list of some graph visualisation application , I am sure one of them might help you with your problem.
All the sessions of the conference are now available online