Mermaid: Maintain the order of the nodes in Flowchart

Created on 30 Mar 2019  路  7Comments  路  Source: mermaid-js/mermaid

Inactive

Most helpful comment

All 7 comments

not ideal, but adding a sub-subgraph around your terms from the FN clause, the order will be preserved

graph TD
linkStyle default interpolate basis
subgraph 

subgraph FN
A
C
E
G
I
end

A[gunung]-->B[NOUN]
C[Krakatau]--> D[NOUN]
E[Yang]-->F[PRON]
G[Pernah]-->H[ADV]
I[meletus] --> J[VERB]
K[mulai]-->L[VERB]
M[terbatuk-batuk] --> N[VERB]
end

subgraph 
  B --> O[FN]
  D --> O
  F --> O
  J --> O
  L --> P[FV]
  N --> P
end
subgraph 
  O --> Q[Subject]
  P --> R[Predicate]
end
subgraph 
 Q-->S[clause]
 R-->S
end

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hi! Sorry for the slow response.

The posisitioning of the nodes are done by a layout algorithm and sometimes that one is not perfect and worksarounds like the one is required. I am aware of this but is not easy to fix. I have half an idea of adding more layout algorithms and the possibility to pick the one thats best fits a particular use case.

The project has got good traction but it also means that it is very hard to manage all issues on your spare time. I am trying to get a bigger team together for faster development and better support #866. I am closing this one for now, not out of disrespect but as a part of an effort to clean out stale issues that has been resolved but not closed.

Is this still a problem? If so please reopen it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

deftdawg picture deftdawg  路  3Comments

pirDOL picture pirDOL  路  3Comments

lwalker-kforce picture lwalker-kforce  路  3Comments

nickwynja picture nickwynja  路  3Comments

erelling picture erelling  路  3Comments