JPH01177123A - Element allocation system for hierarchical directed graph - Google Patents

Element allocation system for hierarchical directed graph

Info

Publication number
JPH01177123A
JPH01177123A JP63001491A JP149188A JPH01177123A JP H01177123 A JPH01177123 A JP H01177123A JP 63001491 A JP63001491 A JP 63001491A JP 149188 A JP149188 A JP 149188A JP H01177123 A JPH01177123 A JP H01177123A
Authority
JP
Japan
Prior art keywords
series
sequence
elements
directed graph
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63001491A
Other languages
Japanese (ja)
Inventor
Hiroyasu Chimura
千村 浩靖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP63001491A priority Critical patent/JPH01177123A/en
Publication of JPH01177123A publication Critical patent/JPH01177123A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To plot a hierarchical directed graph where the elements are arranged in clusters in an easy-to-see way by deciding not only the vertical direction of each element but the horizontal direction with decision of the hierarchical levels. CONSTITUTION:All series are extracted from a hierarchical directed graph received via a series extracting part 1 and a series weight calculation part 2 calculates the weight of all series. A main series setting part 3 sets the series of the maximum weight at the center as a main series. Then a series selecting part 4 selects the one having the largest weight out of those remaining series and a correlation calculation part 5 obtains the correlation between this selected series and the main series. An addition processing part 6 adds the selected series to the main series. Then a deciding part 7 decides the presence or absence of the series with which the addition processes are not through yet. It the presence of said series is confirmed, the operation sets back at the part 4. While if the absence of such series is confirmed, the relevant procedure is through. Thus it is possible to obtain a hierarchical directed graph where the elements are formed into clusters set in an easy-to-see arrangement.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、要素がクラスター化されて見易く配置されて
いる階層的有向グラフを作図するための、要素配置方式
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an element arrangement method for drawing a hierarchical directed graph in which elements are clustered and arranged for easy viewing.

〔従来の技術〕[Conventional technology]

階層的有向グラフを作図する場合、各要素の縦方向の位
[K関しては階層におけるレベル付けにより決められて
いるが、横方向の位置に関しては何等の制約もないので
、通常は、要素の番号の若いものから順に配置するとい
う方式が行なわれている。
When drawing a hierarchical directed graph, the vertical position of each element [K is determined by the leveling in the hierarchy, but there are no restrictions on the horizontal position, so usually the element number The method used is to arrange them in descending order of age.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、この方式では要素間を結ぶ矢印が複雑に
交差し合って、結果的に見にくい図となってしまうとい
う欠点があった。
However, this method has the disadvantage that the arrows connecting elements intersect with each other in a complicated manner, resulting in a diagram that is difficult to read.

本発明の目的は、このような要求に答えるため、要素を
適切に配置して全体的に見易い階層的有向グラフを得る
だめの要素配置方式?提供することにある。
In order to meet these demands, the purpose of the present invention is to provide an element arrangement method for appropriately arranging elements to obtain a hierarchical directed graph that is easy to see as a whole. It is about providing.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明は、n個の要素と、n X nの隣接行列によっ
て定義される要素間の有向線から描かれる階層的有向グ
ラフの要素配置方式において、下位の末端要素の1つか
ら最上位要素の1つへ至る経路(以下これを系列と呼ぶ
)をすべて抽出するとともに、系列内の要素に対してそ
の階層のレベルに応じた重みを与え、与えられた重みを
各系列内で合計し、系列の“重み”としてすべての系列
に定義し、始めに、前記系列の重みが一番大ぎい系列を
”メイン系列”として中心に配置し、続いて、その次に
重みの大きい次系列を選び、前記次系列とその時点のメ
イン系列との間の左からの相関と右からの相関とを計算
し、相関の大きい側から付け加える配置処理を行ない新
しいメイン系列とし。
The present invention provides an element placement method for a hierarchical directed graph drawn from n elements and directed lines between the elements defined by an n x n adjacency matrix, from one of the lower end elements to the top element. At the same time as extracting all the paths leading to one sequence (hereinafter referred to as sequences), weights are given to the elements within the sequence according to the level of the hierarchy, and the given weights are summed within each sequence. First, the series with the largest weight is placed in the center as the "main series," and then the next series with the next largest weight is selected. The correlation from the left and the correlation from the right between the next sequence and the main sequence at that point in time are calculated, and a placement process is performed to add from the side with the larger correlation to create a new main sequence.

前記配置処理を繰り返して重みの大きい系列から順次付
け加え階層的有向グラフを得る階層的有向グラフにおけ
る要素配置方式である。
This is an element arrangement method in a hierarchical directed graph in which a hierarchical directed graph is obtained by repeating the above arrangement process and sequentially adding sequences starting from a sequence with a large weight.

〔作用〕[Effect]

以下、図面を参照しながら本発明を説明する。 The present invention will be described below with reference to the drawings.

n個の要素とn×nの隣接行列によって定義される要素
間?有向線で描くグラフについて、ここでは、第2図に
示した階層的有向グラフを例に取り上げ本発明による要
素配置方式を説明する。1ず第2図の階層的有向グラフ
の中から、下位の末端要素の1つから最上位要素の1つ
へ至る経路(以下これを系列と呼ぶ)をすべて抽出する
。抽出した系列?1仮にz Pin P2* P3  
・・・と表記することにする。次に、系列P、の重みを
次式により求める。
Between elements defined by n elements and n×n adjacency matrix? Regarding graphs drawn using directed lines, the element arrangement method according to the present invention will be described using the hierarchical directed graph shown in FIG. 2 as an example. 1. From the hierarchical directed graph shown in FIG. 2, all paths (hereinafter referred to as sequences) from one of the lower end elements to one of the uppermost elements are extracted. Extracted series? 1 temporary z Pin P2* P3
I will write it as... Next, the weight of the series P is calculated using the following equation.

但し、・eB=l:系列P1が第Jレベルの要素を含む
時 =0:その他の時 al:全レベル数 こζで、第2図の例における全系列とその重みの値を第
3図に示す。なお、第2図の要素のレベルは図の上から
下に順に付している。次に、一番重みの大きい系列を中
心に配置してこれを”メイン系列”と呼ぶ。今の例では
、P3とP6がこれに相当するので第4図のように結合
させて中心にまず配置する。続いて、残シの系列の中で
一番重みの大きい系列を選び、その系列とその時点のメ
イン系列との間の左からの相関と右からの相関とを式(
2)を用いて計算し、相関の大きい側から付け加えてこ
れを新しいメイン系列とする。
However, ・eB=l: When the sequence P1 includes an element of the J-th level = 0: Other times al: Total number of levels With this ζ, the values of all sequences and their weights in the example of FIG. 2 are shown in FIG. Shown below. Note that the levels of the elements in FIG. 2 are assigned in order from the top to the bottom of the diagram. Next, the sequence with the largest weight is placed in the center and is called the "main sequence." In the present example, P3 and P6 correspond to this, so they are combined and placed in the center as shown in FIG. Next, select the sequence with the largest weight among the remaining sequences, and calculate the correlation from the left and the correlation from the right between that sequence and the main sequence at that time using the formula (
2) and add them starting from the side with the highest correlation, making this the new main sequence.

系列Piのメイン系列との左からの相関ここで、fL、
は次式で求める。
Correlation from the left with the main series of series Pi, where fL,
is calculated using the following formula.

rLj ” ’8’、、%−j、R(8P+’t)R(
8me 81)+・・・・・・・・・・・・ 式(3) * 3 p :系列plの@jレベルの要素・Sm二メ
イン系列のZjレベルの、!!!累のうち最も左にある
要素 ・Su、:mjレベルより上のレベルの要素集合@ N
 up ’、集合Sup のJli素数” SLow 
: m jレベルより下のレベルの***合”Nt、o
w:i合S LOWの要素数−δ+j=l:i=jの時 =0:i戸jの時 ・R(i、j):対象とする階/、J的有同グラフの可
到達マトリクスの第(i 、 j) 成分。瞳は1ま−tはOo また、系列ptとメイン系列との右からのA0関につい
ては1式(3)中のSm1に次のように変更するととも
に式(2)9式(3)のrLjをrnj とするだけで
よい。即ち。
rLj ” '8',,%-j,R(8P+'t)R(
8me 81)+・・・・・・・・・ Equation (3) * 3 p: @j level element of series pl・Sm2 Zj level of main series,! ! ! The leftmost element in the set: Su, : Set of elements at a level higher than the mj level @N
up ', Jli prime of set Sup' SLow
: m
w: Number of elements of i combination S LOW - δ + j = l: When i = j = 0: When i door j - R (i, j): Target floor /, reachability matrix of J-like identity graph The (i, j)th component of. Pupil is 1 - t is Oo Also, for the A0 function from the right between series pt and main series, change Sm1 in equation 1 (3) as follows, and change equations (2) and 9 (3). It is sufficient to simply set rLj to rnj. That is.

・Sm:メイン系列の:@Jレベルの要素のうち最も右
iCらる要素 今の例では%P1がこれに相当するので、P2 と第4
1図のメイン系列との間の左からの相関と右からの相関
とを式(2)を用いて計算すると、左からの相関の方が
大きいので、P2 をメイン系列の左側から付け加える
。この結果第5図のようになる。
・Sm: The most right iC element among the @J level elements of the main series In the current example, %P1 corresponds to this, so P2 and the fourth
When the correlation from the left and the correlation from the right with the main sequence in Figure 1 are calculated using equation (2), the correlation from the left is larger, so P2 is added from the left side of the main sequence. The result is as shown in FIG.

以下、上記の手順を繰り返して、重みの大きい系列から
順次メイン系列に付け加えていき、すべての系列を付け
加えたならば終了である。第6図に最終的に得られた階
層的有向グラフを示す。
Thereafter, the above procedure is repeated to add sequences to the main sequence in descending order of weight, and the process ends when all sequences have been added. FIG. 6 shows the finally obtained hierarchical directed graph.

〔実施例〕〔Example〕

第1図は本発明の一実施例をブロック図で示したもので
ある。始めに、系列抽出部1において、与えられた階層
的有向グラフからすべての系列を抽出する。次に、系列
の重み計算部2において、すべての系列の重みを計算す
る。次に、メイン系列設定部3において、重み最大の系
列をメイン系列として中央に設定する処理を行なう。次
に、系列選択部4において、残りの系列の中で重みが最
大の系列を選択する。次に、選択された系列とメイン系
列との間の相関を、相関計算部5にて求める。
FIG. 1 shows a block diagram of an embodiment of the present invention. First, the sequence extraction unit 1 extracts all sequences from a given hierarchical directed graph. Next, the sequence weight calculation unit 2 calculates the weights of all sequences. Next, the main sequence setting unit 3 performs a process of setting the sequence with the maximum weight as the main sequence in the center. Next, the sequence selection unit 4 selects the sequence with the largest weight among the remaining sequences. Next, the correlation calculation unit 5 calculates the correlation between the selected sequence and the main sequence.

次に、付け加え処理部6にて、当該系列をメイン系列に
付け加える。次に、判定部7にて、付け加えの終わって
いない系列があるかどうかを判定し、もしあれは系列選
択部4に戻る。もしなければ終了である。
Next, the addition processing section 6 adds the series to the main series. Next, the determination unit 7 determines whether there is a sequence that has not been added, and if so, the process returns to the sequence selection unit 4. If not, the process is finished.

なお、実施例に示した構成に対応する機能を通常の電子
計算機にて実現することは容易である。
Note that it is easy to implement the functions corresponding to the configurations shown in the embodiments using a normal electronic computer.

〔発明の効果〕〔Effect of the invention〕

従来の、要素(f−m号の若いものから順に配W−rる
という方式ンこ対して、本発明による方式によれば、要
素がクラスター化され′C整然と見やすく配置された1
41i的M向グラフが得られるという効果をもたらす。
In contrast to the conventional method of arranging elements in order from the youngest fm number to
This has the effect that a 41i M-directed graph can be obtained.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック図、第2図、
第3図、第4図、第5図および請6図は本発明による要
素配置方式について説明するための図である。 1・・・・・・系列抽出部、2・・・・・・系列の重み
計算部、3・・・・・・メイン系列設定部、4・・・・
・・系列選択部、5・・・・・・相関計算部、6・・・
・・・付け加え処理部、7・・・・・・判定部。 代理人 弁理士  内 原   晋 第3 図
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG.
FIG. 3, FIG. 4, FIG. 5, and FIG. 6 are diagrams for explaining the element arrangement method according to the present invention. 1... Sequence extraction section, 2... Sequence weight calculation section, 3... Main sequence setting section, 4...
...Sequence selection section, 5...Correlation calculation section, 6...
. . . Addition processing section, 7 . . . Judgment section. Agent Patent Attorney Susumu Uchihara Figure 3

Claims (1)

【特許請求の範囲】[Claims] n個の要素と、n×nの隣接行列によって定義される要
素間の有向線から描かれる階層的有向グラフの要素配置
方式において、下位の末端要素の1つから最上位要素の
1つへ至る経路(以下これを系列と呼ぶ)をすべて抽出
するとともに、系列内の要素に対してその階層のレベル
に応じた重みを与え、与えられた重みを各系列内で合計
し、系列の“重み”としてすべての系列に定義し、始め
に、前記系列の重みが一番大きい系列を“メイン系列”
として中心に配置し、続いて、その次に重みの大きい次
系列を選び、前記次系列とその時点のメイン系列との間
の左からの相関と右からの相関とを計算し、相関の大き
い側から付け加える配置処理を行ない新しいメイン系列
とし、前記配置処理を繰り返して重みの大きい系列から
順次付け加え階層的有向グラフを得ることを特徴とする
階層的有向グラフにおける要素配置方式。
In the element arrangement method of a hierarchical directed graph drawn from n elements and directed lines between elements defined by an n × n adjacency matrix, from one of the lower end elements to one of the top elements In addition to extracting all routes (hereinafter referred to as sequences), weights are given to elements within the sequence according to the level of the hierarchy, and the given weights are summed within each sequence to calculate the “weight” of the sequence. First, define the sequence with the largest weight as the “main sequence”.
Next, select the next series with the next highest weight, calculate the correlation from the left and the correlation from the right between the next series and the main series at that time, and select the one with the highest correlation. A method for arranging elements in a hierarchical directed graph, characterized in that a placement process is performed to add from the side to obtain a new main series, and the placement process is repeated to obtain a hierarchical digraph by adding sequentially from the sequence with the largest weight.
JP63001491A 1988-01-06 1988-01-06 Element allocation system for hierarchical directed graph Pending JPH01177123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63001491A JPH01177123A (en) 1988-01-06 1988-01-06 Element allocation system for hierarchical directed graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63001491A JPH01177123A (en) 1988-01-06 1988-01-06 Element allocation system for hierarchical directed graph

Publications (1)

Publication Number Publication Date
JPH01177123A true JPH01177123A (en) 1989-07-13

Family

ID=11502921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63001491A Pending JPH01177123A (en) 1988-01-06 1988-01-06 Element allocation system for hierarchical directed graph

Country Status (1)

Country Link
JP (1) JPH01177123A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232749A (en) * 2014-06-09 2015-12-24 株式会社日立製作所 Valid graph visualization device and valid graph visualizing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232749A (en) * 2014-06-09 2015-12-24 株式会社日立製作所 Valid graph visualization device and valid graph visualizing method

Similar Documents

Publication Publication Date Title
US5179699A (en) Partitioning of sorted lists for multiprocessors sort and merge
CN108846472A (en) A kind of optimization method of Adaptive Genetic Particle Swarm Mixed Algorithm
US6763512B2 (en) Detailed method for routing connections using tile expansion techniques and associated methods for designing and manufacturing VLSI circuits
CN111310409B (en) Multi-stage FPGA wiring method for optimizing time division multiplexing technology
ATE404938T1 (en) ANALYZING PATTERNS
US6901506B2 (en) Maximal tile generation technique and associated methods for designing and manufacturing VLSI circuits
CN108307000A (en) Block chain generation method based on time scheduling
JPH01177123A (en) Element allocation system for hierarchical directed graph
CN105991571B (en) A kind of information processing method and device
CN108133240A (en) A kind of multi-tag sorting technique and system based on fireworks algorithm
CN110020456A (en) The method for gradually generating FPGA realization using the similarity searching based on figure
US7707522B2 (en) Auto-routing small jog eliminator
CN107122242A (en) A kind of balanced dicing method of big data of effective lifting distributed arithmetic performance
Pastor et al. Harmonic structure of one-dimensional quadratic maps
KR20010024944A (en) A method for manufacturing and designing an electronic device and electronic apparatus
CN113472870B (en) Contract supporting distributed account book consensus method and system based on directed acyclic graph
JP2613961B2 (en) Index division rate change processing method
JP2004062286A (en) Matching controller for data
US20020129326A1 (en) Method for inserting repeaters in hierarchical chip design
JP2000112917A (en) Method for clustering mass information
CN113572640B (en) Equipment instruction issuing control method, system and device
CN106802878A (en) Being optimized by data mining for task is divided
Zhang et al. An Enhancing Differential Evolution Algorithm with a Rank-Up Selection: RUSDE. Mathematics 2021, 9, 569
JPH01228064A (en) Element arranging device for hierarchically oriented graph
Wang et al. Clustering-Assisted Preselection Multiobjective Optimization for Equipment Portfolio