I add edges (green) to graph, that makes hierarchy of nodes. How to add minor edges (red) that not affecting on the hierarchy?
If you want an edge to not have an impact on ranking, you can simply set the constraint attribute to false:
false
If false, the edge is not used in ranking the nodes.
Example:
node1 -> node2 [constraint=false];