Given the following directed graphs:
ClearAll[one, two];
one = {1 -> 2, 1 -> 3, 3 -> 4, 4 -> 1};
two = {1 -> 2, 1 -> 3, 1 -> 4};
I generate a single directed graph by:
Graph[Join[one, two], VertexLabels -> "Name"]
It is fine. When I assign different colors for each graph like Blue
for one
and Red
for two
and ask for a layered graph plot, it does not work!
I tried EdgeAdd
, GraphUnion
but no success. Any idea about the feasibility of such a custom-designed graph? I also consulted with IGraphM
, hoping that it might have developed the code I am after, but again no success.