3
今はD3.jsツリーレイアウトを使用して組織図を作成しています。組織図はログインしたユーザーによって開かれ、デフォルトでユーザーのノードに開かれた組織図が表示されます。例えばD3.js:ノードnまでツリーを展開
は、ユーザーにログインした場合は「N」で、組織図は次のとおりです。
j m
//
b - e - k
/
a - d - l - n
\
c- f - h
\
i
ユーザーが表示されます。
a - d - l - n
ので、問題文が拡大することですOrgチャートはノードid/nameがログインしているユーザーである特定のノードまでです。
助けを歓迎します。
を見たいノードでfind関数を呼び出しますか? http://stackoverflow.com/questions/3332947/when-is-it-practical-to-use-dfs-vs-bfs – 0x90