JP3346130B2 - Graph figure arrangement method and apparatus - Google Patents

Graph figure arrangement method and apparatus

Info

Publication number
JP3346130B2
JP3346130B2 JP29131195A JP29131195A JP3346130B2 JP 3346130 B2 JP3346130 B2 JP 3346130B2 JP 29131195 A JP29131195 A JP 29131195A JP 29131195 A JP29131195 A JP 29131195A JP 3346130 B2 JP3346130 B2 JP 3346130B2
Authority
JP
Japan
Prior art keywords
graph
nodes
distance
arrangement
node
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.)
Expired - Fee Related
Application number
JP29131195A
Other languages
Japanese (ja)
Other versions
JPH09134440A (en
Inventor
達郎 佐野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP29131195A priority Critical patent/JP3346130B2/en
Publication of JPH09134440A publication Critical patent/JPH09134440A/en
Application granted granted Critical
Publication of JP3346130B2 publication Critical patent/JP3346130B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はグラフ図形の配置法
およびその装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for arranging graph figures.

【0002】[0002]

【従来の技術】階層性を顕示するようなグラフ図形配置
法はこれまで多く研究され、アルゴリズムもいくつか提
案されているが、これに対し非階層的なグラフ図形の配
置に関する研究はほとんど行われておらず、例えば文献
(Information Processing Letters,Vol.31,NO.1(198
9),pp.7-15.)では、ノード間に単純なバネの力を定義
しノード間の理想的な距離をグラフ理論上の距離すなわ
ちノード間の最短経路を構成するアークの数としたグラ
フ図形自動描画アルゴリズムが提案されているにすぎな
い。ここで、「ノード間の理想的な距離」とは、「ノー
ド間の距離の設定目標値」を意味し、以下では「理想距
離」と呼ぶこととする。
2. Description of the Related Art Many graph graphic arrangement methods that reveal hierarchical properties have been studied so far, and some algorithms have been proposed. On the other hand, research on non-hierarchical graph graphic arrangements has been mostly conducted. For example, the literature (Information Processing Letters, Vol. 31, NO. 1 (198
9), pp.7-15.) Defines simple spring force between nodes, and sets the ideal distance between nodes as the graph theoretical distance, that is, the number of arcs that constitute the shortest path between nodes. Only a graph figure automatic drawing algorithm has been proposed. Here, “ideal distance between nodes” means “no
In the following, the `` ideal distance setting target value ''
Release ”.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このグ
ラフ図形の非階層的配置アルゴリズムも、多くのアーク
がつながったノードを含むグラフを描画すると、図22
のように歪んだ描画となり大規模なグラフをうまく配置
することができないという問題点があった。さらに、こ
れまでに提案されたグラフの自動配置アルゴリズムは対
話式にグラフを編集するようなシステムを考慮していな
かった。
However, the non-hierarchical arrangement algorithm of the graph figure also draws a graph including nodes to which many arcs are connected, as shown in FIG.
, And there is a problem that a large-scale graph cannot be arranged properly. Furthermore, the automatic graph placement algorithms proposed so far have not considered systems for interactively editing graphs.

【0004】本発明は上記のような問題点を解決するた
めになされたもので、見やすいグラフ図形が得られるグ
ラフ図形配置法および装置を提供すること、さらに、対
話的なグラフ図形編集を考慮したグラフ図形配置法およ
び装置を提供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and provides a method and an apparatus for arranging a graph figure capable of obtaining an easy-to-read graph figure. It is an object of the present invention to provide a graph graphic arrangement method and apparatus.

【0005】[0005]

【課題を解決するための手段】請求項1に係るグラフ図
形配置法は、グラフ図形配置部において、複数のノード
と、これらのノード中、接続関係のあるノード間を結ぶ
線として定義したアークとで構成されるグラフ図形をデ
ータとして記憶保持したグラフデータ記憶部からグラフ
図形を取り出し、アークの両端のノードに接続される各
々のアーク数に ついての増加関数として定義されたノー
ド間の距離の設定目標値算定式から算定されたノード間
距離の設定目標値に基づき、各ノードの配置を非階層的
に決定することにより、グラフ図形の配置を行うもので
ある。
According to a first aspect of the present invention, there is provided a graph graphic arrangement method comprising the steps of:
And connect these connected nodes
A graph figure composed of arcs defined as lines
Graph from the graph data storage unit
Take out the figure and connect it to the nodes at both ends of the arc.
Defined a no as an increasing function about the arc the number of people
Between nodes calculated from the target value calculation formula for setting the distance between nodes
Non-hierarchical arrangement of each node based on distance target value
Is determined, the layout of the graph figure is performed .

【0006】請求項2に係るグラフ図形配置法は、複数
のアークを介して接続される2つのノード間の距離の設
定目標値を、該ノード間のパスを構成するアークの
端のノード間の距離の設定目標値の和とするものであ
る。
According to a second aspect of the present invention, a distance between two nodes connected via a plurality of arcs is set.
The constant target value is calculated for both arcs that constitute the path between the nodes.
This is the sum of the set target values of the distance between the end nodes .

【0007】請求項3に係るグラフ図形配置法は、グラ
フ図形配置部において、ノード間の距離の設定目標値
、対応する実際のノード間距離との差の増加関数の
すべてのノードについての和を評価関数として定義し、
この評価関数の値が平面配置上で最も小さくなるように
ノード配置の変更を逐次的に行うものである。
According to a third aspect of the present invention, there is provided a graph graphic arrangement method,Gra
In the figure placement section,Between nodesSet distance target value
WhenCorrespondingOf the increasing function of the difference from the actual distance between nodes,
Define the sum of all nodes as an evaluation function,
thisSo that the value of the evaluation function is the smallest on the plane
The node arrangement is changed sequentially.

【0008】請求項4に係るグラフ図形配置法は、グラ
フ図形配置部において、ノード間の距離の設定目標値
、対応する実際のノード間距離との差に基づいてノー
ド間に働く力を定義し、すべてのノード間に働く力が平
面配置上でバランスするようにノード配置の変更を逐次
的に行うものである。
According to a fourth aspect of the present invention, there is provided a graph graphic arranging method.Gra
In the figure placement section,Between nodesSet distance target value
WhenCorrespondingBased on the difference from the actual distance between nodes,
The forces acting between nodes are defined, and the forces acting between all nodes
Change the node arrangement sequentially to balance on the plane arrangement
It is something to be done.

【0009】請求項5に係るグラフ図形配置法は、評価
関数値に対するノード間の距離の設定目標値、対応す
実際のノード間距離との差の寄与率をノード間の距離
の設定目標値またはノード間のグラフ理論上の距離の減
少関数としたものである。
According to a fifth aspect of the present invention, there is provided a method for arranging graph graphics , wherein a target value for setting a distance between nodes with respect to an evaluation function value and a corresponding target value are set .
The distance between the contribution of the node of the difference between the actual distance between nodes that
It is obtained by a decreasing function of distance on the graph theory between the set target value or node.

【0010】請求項6に係るグラフ図形配置法は、ノー
ド間の力に対するノード間の距離の設定目標値、対応
する実際のノード間距離との差の寄与率をノード間の
離の設定目標値またはノード間のグラフ理論上の距離の
減少関数としたものである。
According to a sixth aspect of the present invention, there is provided a graph graphic arranging method, comprising : setting a target value of a distance between nodes with respect to a force between nodes ;
Distance between the contribution of the difference between the actual distance between nodes that node
This is a set target value of the separation or a decreasing function of the graph theoretical distance between nodes.

【0011】請求項7に係るグラフ図形配置法は、グラ
フ図形配置部において、グラフデータ記憶部より、取り
出したグラフ図形から、あらかじめ多重枝および自己閉
路を検出して取り除き、グラフ図形の配置を終了した後
に上記多重枝および自己閉路を復元するものである。
[0011] graph graphic placement method according to claim 7, Gras
In the figure layout unit,
The multi-branch and the self-cycle are detected and removed from the output graph graphic in advance, and the multi-branch and the self-cycle are restored after the arrangement of the graph graphic is completed.

【0012】請求項に係るグラフ図形配置装置は、
数のノードと、これらのノード中、接続関係のあるノー
ド間を結ぶ線として定義したアークとで構成されるグラ
フ図形をデータとして記憶保持したグラフデータ記憶部
と、このグラフデータ記憶部からグラフ図形を取り出
し、アークの両端のノードに接続される各々のアーク数
についての増加関数として定義されたノード間の距離の
設定目標値算定式から算定されたノード間距離の設定目
標値に基づき、各ノードの配置を非階層的に決定するこ
とにより、グラフ図形の配置を行うグラフ図形配置部を
備えたものである。
[0012] graph graphic arrangement device according to claim 8, double
Number of nodes and, among these nodes,
A graph consisting of an arc defined as a line connecting
Graph data storage unit that stores and holds graphics as data
And retrieve the graph figure from this graph data storage
And the number of each arc connected to the nodes at both ends of the arc
Of the distance between nodes defined as an increasing function for
Setting value of the distance between nodes calculated from the setting target value calculation formula
The arrangement of each node can be determined non-hierarchically based on the standard values.
With this, the graph figure arrangement part that arranges the graph figure
It is provided .

【0013】請求項に係るグラフ図形配置装置は、複
数のアークを介して接続される2つのノード間の距離の
設定目標値を、該ノード間のパスを構成するアークの
両端のノード間の距離の設定目標値の和とするものであ
る。
[0013] graph graphic arrangement device according to claim 9, the distance between two nodes connected via a plurality of arcs
The set target value is determined for each arc that constitutes the path between the nodes.
This is the sum of the set target values of the distance between the nodes at both ends .

【0014】請求項10に係るグラフ図形配置装置は、
グラフ図形配置部において、ノード間の距離の設定目標
、対応する実際のノード間距離との差の増加関数
の、すべてのノードについての和を評価関数として定義
し、この評価関数の値が平面配置上で最も小さくなるよ
うにノード配置の変更を逐次的に行うものである。
[0014] According to a tenth aspect of the present invention, there is provided a graph graphic arrangement apparatus comprising:
Setting target of distance between nodes in graph figure layout
Define the sum of all the nodes of the increasing function of the difference between the value and the corresponding actual distance between nodes as an evaluation function, and change the node arrangement so that the value of this evaluation function becomes the smallest on a planar arrangement Are sequentially performed.

【0015】請求項11に係るグラフ図形配置装置は、
グラフ図形配置部において、ノード間の距離の設定目標
、対応する実際のノード間距離との差に基づいてノ
ード間に働く力を定義し、すべてのノード間に働く力が
平面配置上でバランスするようにノード配置の変更を逐
次的に行うものである。
[0015] The graph graphic arrangement device according to claim 11 is
Setting target of distance between nodes in graph figure layout
Define the forces acting between the nodes based on the difference between the value and the corresponding actual inter-node distance, and change the node arrangement sequentially so that the forces acting between all nodes are balanced on a plane arrangement Things.

【0016】[0016]

【発明の実施の形態】実施の形態1. 以下、本発明の実施の形態1を図面に基づいて説明す
る。図1は本発明の実施の形態1によるグラフ図形配置
法を用いたグラフ図形配置装置の構成図である。図1に
示すように、本装置は入力装置100、処理装置10
1、および出力装置107からなり、処理装置101は
管理部102、グラフ図形配置部103、グラフ図形編
集部104、グラフ図形描画部105、およびグラフデ
ータ記憶部106を備えている。なお、入力装置100
側の機器と出力装置107側の機器とは、一つのCRT
やキーボード、ハードディスク等を共有してもよく、入
力データとグラフ図形の配置とをマルチウインドウ形式
で表示することも自由である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 Hereinafter, Embodiment 1 of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of a graph graphic arrangement device using a graph graphic arrangement method according to Embodiment 1 of the present invention. As shown in FIG. 1, the present apparatus comprises an input device 100, a processing device 10
1 and an output device 107. The processing device 101 includes a management unit 102, a graph graphic arrangement unit 103, a graph graphic editing unit 104, a graph graphic drawing unit 105, and a graph data storage unit 106. The input device 100
Device on the output side and the device on the output device 107 side are one CRT
A keyboard, a hard disk, and the like may be shared, and the input data and the arrangement of the graphic figures can be freely displayed in a multi-window format.

【0017】管理部102は、処理装置101全体の処
理を管理する。すなわち、管理部102は、入力装置1
00からの編集要求に従いグラフ図形編集部104へ処
理を移し、グラフ図形の編集を行う。グラフ図形編集部
104の処理が終了すると、管理部102はその結果を
グラフデータ記憶部106へ記憶させ、処理をグラフ図
形描画部105へ移す。グラフ図形描画部105はグラ
フデータ記憶部106のデータに従い出力装置へグラフ
図形を描画する。また管理部102は、入力装置100
からのグラフ図形自動配置要求に従い、グラフ図形配置
部103に処理を移し、グラフ図形の配置を決定させ、
その結果をグラフデータ記憶部106に記憶させ、その
後処理をグラフ図形描画部105へ移す。グラフ図形描
画部105はグラフデータ記憶部106のデータに従い
出力装置107へグラフ図形を描画する。グラフ図形配
置部103は、管理部102の命令に従い、グラフデー
タ記憶部106のデータをもとにグラフの配置を自動的
に見やすく再配置する手段を備えている。グラフ図形編
集部104は、管理部102の命令に従い、グラフ図形
の編集を行う処理手段を備えている。編集内容は、ノー
ドの追加および削除および移動、アークの追加および削
除などがあり、またグラフ図形の配置を適当なノードあ
るいは適当な座標を中心に拡大または縮小することもで
きる。グラフ図形描画部105は、管理部102の命令
に従い、グラフデータ記憶部106のデータをもとにグ
ラフ図形を出力装置107に描画する手段を備えてい
る。グラフデータ記憶部106は、グラフの構造ととも
に各要素の大きさや位置などのデータを記憶する手段を
備えている。
The management unit 102 manages the processing of the entire processing apparatus 101. That is, the management unit 102 stores the input device 1
In accordance with the editing request from 00, the processing is shifted to the graph figure editing unit 104 to edit the graph figure. When the processing of the graph graphic editing unit 104 is completed, the management unit 102 stores the result in the graph data storage unit 106, and shifts the processing to the graph graphic drawing unit 105. The graph / graphic drawing unit 105 draws a graph / graphic on the output device according to the data in the graph data storage unit 106. Further, the management unit 102 includes the input device 100
In accordance with the graph figure automatic arrangement request from, the processing is transferred to the graph figure arrangement unit 103, and the arrangement of the graph figure is determined.
The result is stored in the graph data storage unit 106, and then the processing is moved to the graph / graphic drawing unit 105. The graph figure drawing unit 105 draws a graph figure on the output device 107 according to the data in the graph data storage unit 106. The graph / graphic arrangement unit 103 includes means for automatically rearranging the arrangement of the graph in an easy-to-see manner based on the data in the graph data storage unit 106 in accordance with an instruction from the management unit 102. The graph graphic editing unit 104 includes a processing unit that edits a graph graphic according to an instruction from the management unit 102. Edit contents include addition and deletion and movement of nodes, addition and deletion of arcs, and the like, and the arrangement of a graph figure can be enlarged or reduced around an appropriate node or an appropriate coordinate. The graph / graphic drawing unit 105 includes a unit that draws a graph / graphic on the output device 107 based on the data in the graph data storage unit 106 in accordance with a command from the management unit 102. The graph data storage unit 106 includes means for storing data such as the size and position of each element together with the structure of the graph.

【0018】次に、グラフ図形配置部103で用いられ
ているグラフ図形配置法について詳細を説明する。グラ
フ図形配置部103は、グラフ図形を自動的に見やすく
配置する処理手段を備えている。本実施の形態ではグラ
フ図形の配置法として、あらかじめ決められたノード間
の理想距離にできるだけ実際のノード間の距離が近くな
るようにグラフを配置するグラフ配置法を用いる。具体
的には本実施の形態では、グラフの各連結成分に対し平
面上に配置するときのノード間の理想距離を決め、この
ノード間の理想距離と実際の距離との誤差の2乗に適当
な関数値を掛けたものの全ノードの合計ができるだけ小
さくなるような状態にノードを少しずつ動かしていくと
いう配置法を用いる。但し、前処理としてグラフ中の多
重枝、自己閉路は取り除き、後処理として前処理で取り
除いた多重枝、自己閉路を復元してグラフ図形を描画す
る。
Next, the graph graphic arrangement method used in the graph graphic arrangement unit 103 will be described in detail. The graph figure arranging unit 103 includes processing means for automatically arranging the graph figures so as to be easily viewed. In the present embodiment, a graph arrangement method for arranging graphs so that the actual distance between nodes is as close as possible to the predetermined ideal distance between nodes is used as an arrangement method for graph figures. Specifically, in the present embodiment, an ideal distance between nodes when arranging the connected components on a plane is determined for each connected component of the graph, and the ideal distance between this node and the actual distance between the nodes is squared. An arrangement method is used in which nodes are moved little by little so that the sum of all nodes becomes as small as possible after multiplying by various function values. However, the multi-branch and the self-cycle in the graph are removed as the pre-processing, and the multi-branch and the self-cycle removed in the pre-processing are restored as the post-processing to draw the graph graphic.

【0019】そこで、図2によってグラフ中の多重枝、
自己閉路を取り除く処理について説明する。ステップ1
10では、多重枝の組すなわち同じ2つのノードを両端
とするアークの組を探す。探索の方法としては単純に2
つの異なるアークを選ぶ全ての組についてその両端のノ
ードを比較する。ステップ111では、同じ2つのノー
ドを両端とするアークの組が見つかったかどうかを判断
する。見つかった場合は処理をステップ112に移し、
見つかったアークの組のどちらかのアークを取り除く。
同じ2つのノードを両端とするアークの組が見つからな
い場合は処理をステップ113に移す。ステップ113
では、自己閉路を作るアーク、すなわち両端が同じ1つ
のノードであるアークを探す。なお、探索の方法として
は、全てのアークに対してその両端のノードを比較す
る。ステップ114では、両端が同じ1つのノードであ
るアークが見つかったかどうかを判断する。見つかった
場合は、処理をステップ115に移し、そのアークを取
り除く。見つからなかった場合は、処理を終了する。
Therefore, referring to FIG.
The processing for removing the self-closed circuit will be described. Step 1
In step 10, a set of multiple branches, that is, a set of arcs having both ends of the same two nodes is searched for. The search method is simply 2
Compare the nodes at both ends for all pairs that choose three different arcs. In step 111, it is determined whether a set of arcs having both ends of the same two nodes has been found. If found, the process moves to step 112,
Remove any arc from the set of found arcs.
If no arc set having both ends of the same two nodes is found, the process proceeds to step 113. Step 113
Then, an arc that forms a self-closed circuit, that is, an arc whose both ends are the same one node is searched. As a search method, nodes at both ends of all arcs are compared. At step 114, it is determined whether or not an arc having one node at both ends is found. If found, the process shifts to step 115 to remove the arc. If not found, the process ends.

【0020】なお、本実施の形態で用いる距離としては
ユークリッド距離を用いるが、ハミング距離等の他の距
離を用いても同様の議論ができる。また、グラフ図形の
描画を行う座標系の次元は2次元でも3次元でもよく、
一般にn次元でもよい(n=1,2,3,4,…)。
Although the Euclidean distance is used as the distance used in the present embodiment, the same discussion can be made using other distances such as the Hamming distance. The dimension of the coordinate system for drawing the graph figure may be two-dimensional or three-dimensional.
Generally, it may be n-dimensional (n = 1, 2, 3, 4,...).

【0021】まず、アークaijの両端のノードi、j間
のグラフ図形上の理想的な距離eijを、ノードiおよび
ノードjの状態によって
First, the ideal distance e ij in the graph between the nodes i and j at both ends of the arc a ij is determined by the states of the nodes i and j.

【0022】[0022]

【数1】 (Equation 1)

【0023】のように定義する。但し、式1においてL
はノード間の長さの基準となるスケーリング定数、ni
はノードiに接続するアークの数であり、njも同様に
ノードjに接続するアークの数である。式1によりノー
ド間の理想的な距離は(ni+nj)が大きいほど長くな
る。つまり、式1によって、ノードi,j間の理想的な
距離eijは、ノードi,jに接続するアークの数の増加
関数になっている。なお、ノードi,j間の理想的な距
離の定義は式1の形だけに限るものではなく、1つのア
ークで結ばれるノード間の理想的な距離をその両端のノ
ードに接続するアークの数の増加関数で定義するもので
あれば、目的に応じて自由に設定することができる。
Is defined as follows. However, in equation 1, L
Is a scaling constant that is a measure of the length between nodes, n i
Is the number of arcs connected to node i, and n j is also the number of arcs connected to node j. According to Equation 1, the ideal distance between nodes increases as (n i + n j ) increases. That is, according to Equation 1, the ideal distance e ij between the nodes i and j is an increasing function of the number of arcs connected to the nodes i and j. Note that the definition of the ideal distance between the nodes i and j is not limited to the form of Equation 1, and the ideal distance between the nodes connected by one arc is defined by the nodes at both ends .
As long as it is defined by an increasing function of the number of arcs connected to the node, it can be set freely according to the purpose.

【0024】また、アークaijの理想的な距離を式1で
定義されるeijの値とし、1つのアークで結ばれないよ
うな隣接しないノードm,n間の理想距離については、
ノードm,n間のパスを構成するアークの理想距離の合
計の長さとする。これにより、遠くのノードを不合理に
接近させることが防げる。
The ideal distance of the arc a ij is defined as the value of e ij defined by the equation 1, and the ideal distance between the non-adjacent nodes m and n which are not connected by one arc is
The length is the total length of the ideal distances of the arcs constituting the path between the nodes m and n. As a result, it is possible to prevent distant nodes from approaching irrationally.

【0025】本実施の形態のグラフ配置アルゴリズムは
アークの長さができるだけ理想的なアークの長さになる
ようにグラフを配置するため、アークの長さをその両端
のノードの状態によって決定することができ、アークの
長さの定義が式1の場合は、次数の高いノードを含むグ
ラフも見易く配置できることになる。
Since the graph arrangement algorithm of the present embodiment arranges the graph so that the arc length becomes as ideal as possible, the arc length is determined by the states of the nodes at both ends of the arc. When the definition of the arc length is Expression 1, a graph including a node having a high degree can be arranged in a legible manner.

【0026】次に、評価関数として、ノード間の理想距
離と実際のノード間の距離との誤差の2乗に適当な関数
値を掛けたものの合計Eを
Next, as an evaluation function, the sum E obtained by multiplying the square of the error between the ideal distance between the nodes and the actual distance between the nodes by an appropriate function value is given by:

【0027】[0027]

【数2】 (Equation 2)

【0028】のように定義する。但し、式2においてN
はグラフの全ノードの集合、i,jはNの要素(但しj
≠i)、kは適当な定数、fは適当な関数、eijはノー
ドiとノードj間のグラフ図形上の理想距離、Rijはノ
ードi、j間の距離である。式2のように、1/eij
掛けることにより誤差を単位長さ当たりに換算でき、相
対的に評価できる。
Is defined as follows: However, in equation 2, N
Is the set of all nodes in the graph, i and j are N elements (where j
≠ i), k is an appropriate constant, f is an appropriate function, e ij is an ideal distance on the graph between node i and node j, and R ij is a distance between nodes i and j. As in Equation 2, by multiplying by 1 / e ij , the error can be converted per unit length and relatively evaluated.

【0029】先に述べたように、本実施の形態のグラフ
の非階層的自動配置法ではまず、各ノード間の配置平面
上の理想距離を目的に応じた定式によって決め、式2の
Eができるだけ小さくなるようにノードを少しずつ動か
し、グラフの配置を求める。評価関数(式2)は、この
図形配置法において、結果的に各ノード間に作用する相
互作用を発生しているものである。ここでIijをノード
間のグラフ理論上の距離とし、式2のf(eij)の代わり
にf(Iij)またはf(eij,Iij)としてもよい。ノ
ード間のグラフ理論上の距離とは、ノードi,j間を結
ぶ最短経路上のアークの数である。このようにEをでき
るだけ小さくするようなノードの配置を求める具体的な
方法には各種の方法がある。例えば、最適化問題の解あ
るいは近似解を求める方法としてよく知られているシミ
ュレーティッドアニーリング法を用いる場合の一例につ
いて説明する。まず式2のEをノードiのみに対して計
算した以下の式を定義する。
As described above, in the non-hierarchical automatic arrangement method of the graph according to the present embodiment, first, the ideal distance on the arrangement plane between the nodes is determined by a formula according to the purpose. Move the nodes little by little so as to make it as small as possible, and find the layout of the graph. The evaluation function (Equation 2) generates an interaction acting between the nodes as a result in this graphic arrangement method. Here, I ij may be a graph theoretical distance between nodes, and f (I ij ) or f (e ij , I ij ) may be used instead of f (e ij ) in Equation 2. The graph theoretical distance between nodes is the number of arcs on the shortest path connecting nodes i and j. As described above, there are various methods for determining the arrangement of the nodes so as to make E as small as possible. For example, an example in which a simulated annealing method well known as a method for obtaining a solution or an approximate solution of an optimization problem is used will be described. First, the following equation, in which E of Equation 2 is calculated for only the node i, is defined.

【0030】[0030]

【数3】 (Equation 3)

【0031】全てのノードについてEiを計算し、その
中でEiの値が一番大きかったノードiについてノード
iの位置を少しだけ動かし、式2を目的関数としたシミ
ュレーティッドアニーリング法の近似解を求める操作を
1回適用する。その後全てのノードについてEiを再度
計算し、その中でEiが一番大きかったノードについて
前述の操作と同様に近似解を求めるという操作を繰り返
してEができるだけ小さくなるようなノードの配置を求
める。
[0031] For all of the nodes E i is calculated, move only a little the position of the node i for the node i value of E i is greater best in the approximation of the simulated annealing method using Equation 2 and the objective function Apply the operation to find the solution once. Thereafter, E i is calculated again for all the nodes, and the operation of obtaining an approximate solution for the node having the largest E i among them is repeated in the same manner as described above, so that the arrangement of the nodes such that E becomes as small as possible is determined. Ask.

【0032】式2のf(eij)として適当な関数を定義す
ることにより、ノードi,j間の理想距離が離れる程に
Eに占める誤差の相対的な大きさを小さくすることがで
きる。これによりグラフ全体のバランスに配慮しつつ、
局所的なバランスのとれたグラフの配置を行うことがで
きる。本実施の形態ではf(eij)を
By defining an appropriate function as f (e ij ) in Equation 2, the relative magnitude of the error occupying E can be reduced as the ideal distance between nodes i and j increases. This takes into account the balance of the entire graph,
A locally balanced graph arrangement can be performed. In the present embodiment, f (e ij ) is

【0033】[0033]

【数4】 (Equation 4)

【0034】のように定義する。これにより、f(eij)
はeijの減少関数となり、ノード間の理想距離が離れる
程にEに占める誤差の相対的な大きさを小さくすること
ができ、グラフ全体のバランスに配慮しつつ、局所的な
バランスのとれたグラフの配置を行うことができる。
Is defined as follows. Thus, f (e ij )
Is a decreasing function of e ij , and the relative magnitude of the error occupying E can be reduced as the ideal distance between the nodes increases, and the local balance is obtained while considering the balance of the entire graph. You can arrange graphs.

【0035】次に図3によりグラフ図形配置部103の
処理について説明する。ステップ120では、グラフデ
ータ記憶部106からデータを取りだす。ステップ12
1以下の操作を、ステップ120で取り出したグラフデ
ータの各連結成分それぞれについて行う。ステップ12
1では、グラフデータから多重枝、自己閉路を取り除
く。ステップ122では、ループ用のカウンタであるco
untの値を0にする。ステップ123では、各ノード間
の理想距離を求める。ステップ124では、アルゴリズ
ムの終了を判定する。式2で定義されるEがあらかじめ
設定した基準値より小さいか、countの値が設定値より
大きい場合終了する。ステップ125では、配置し終え
たグラフ図形のデータをグラフデータ記憶部106へ記
憶させる。ステップ126では、countの値を1だけ増
やす。ステップ127では、式2のEの値を小さくする
ようにノードの位置を変更する。ステップ128では、
逐次描画フラグがONかOFFかを判断する。逐次描画
フラグがONならば処理をステップ129へ移しそうで
ないなら処理をステップ124へ移す。ステップ129
では、countの値が描画条件を満たすかを判断する。逐
次描画の割合を決めるために設定された、ループを何回
行うごとにグラフ図形を描画するかを示す値Cに対し、
countがCで割り切れた場合は処理をステップ130へ
移し、割り切れない場合は処理をステップ124に移
す。ステップ130では、現在表示されているグラフ図
形を消去し、かわりにステップ127で変更されたグラ
フ図形を表示する。これにより、グラフ図形の自動配置
処理によるグラフ図形の変化を適切な進度で連続的に表
示することができる。
Next, the processing of the graph graphic arrangement unit 103 will be described with reference to FIG. In step 120, data is extracted from the graph data storage unit 106. Step 12
The following operations are performed for each connected component of the graph data extracted in step 120. Step 12
In step 1, multiple branches and self-cycles are removed from the graph data. In step 122, the counter for the loop, co
Set the value of unt to 0. In step 123, an ideal distance between each node is obtained. In step 124, the end of the algorithm is determined. If E defined by Expression 2 is smaller than the preset reference value or the value of count is larger than the set value, the process ends. In step 125, the graph data that has been arranged is stored in the graph data storage unit 106. In step 126, the value of count is increased by one. In step 127, the position of the node is changed so as to reduce the value of E in Expression 2. In step 128,
It is determined whether the drawing flag is ON or OFF. If the sequential drawing flag is ON, the process proceeds to step 129; otherwise, the process proceeds to step 124. Step 129
Then, it is determined whether the value of count satisfies the drawing condition. For the value C, which is set to determine the ratio of sequential drawing and indicates how many times the loop is drawn,
If the count is divisible by C, the process proceeds to step 130; otherwise, the process proceeds to step 124. In step 130, the currently displayed graph graphic is deleted, and the graph graphic changed in step 127 is displayed instead. As a result, it is possible to continuously display the change of the graph figure due to the automatic arrangement processing of the graph figure at an appropriate progress.

【0036】次に、グラフ図形編集部104で用いられ
るグラフ図形の拡大、縮小法について詳細を説明する。
図4(a)はマウス等のポインティングデバイスでグラフ
図形の拡大の中心を指定したところである。図4(a)の
場合、ポインティングされたノードtを中心に拡大を行
う。図4(b)は、図4(a)のグラフ図形を指定された拡大
率で拡大した図である。図4(b)のようにこの拡大にお
いては、ノードの間隔のみを拡大し、ノード自体の大き
さは変えない。図4(b)の様に拡大することにより、指
定したノードの周りの様子がよく分かるようになる。ま
た、ノードの大きさを変えないため、ノードに記述され
ている情報自体は変化せず、また冗長なノードに隠され
ていたアークを表示することができる。
Next, a method of enlarging or reducing a graph figure used in the graph figure editing unit 104 will be described in detail.
FIG. 4A shows a state in which the center of enlargement of the graph figure is designated by a pointing device such as a mouse. In the case of FIG. 4A, enlargement is performed centering on the pointed node t. FIG. 4B is a diagram in which the graph graphic of FIG. 4A is enlarged at a specified enlargement ratio. In this enlargement, as shown in FIG. 4B, only the interval between nodes is enlarged, and the size of the node itself is not changed. By enlarging as shown in FIG. 4B, the situation around the designated node can be understood well. Further, since the size of the node is not changed, the information itself described in the node does not change, and the arc hidden by the redundant node can be displayed.

【0037】次に、具体的にノードの形状が円で、ノー
ドtを中心に拡大率rでグラフ図形の拡大を行う場合に
ついて説明する。まずノードの描画の基準をノードを表
す円の中心とする。従ってノードの描画はノードに対応
する円の中心の座標から適当な半径で円を描画すること
になる。そして、ノードjを表す円jの中心の座標をC
j(xcj,ycj)とする。このときグラフ図形の各ノー
ドに対応した円の中心全てについて xci←r×(xci−xct)+xct (式5) yci←r×(yci−yct)+yct (式6) といった座標変換を行う。ただし、Nをグラフの全ノー
ドの集合とし、i∈Nとする。但し、A←Bは、まずB
の値を計算し、その値をAに代入することを表す。
Next, a case will be described in which the graph shape is enlarged at a magnification r with the node t being a circle and the node t as the center. First, the reference of the node drawing is set to the center of the circle representing the node. Therefore, when drawing a node, a circle is drawn with an appropriate radius from the coordinates of the center of the circle corresponding to the node. Then, the coordinates of the center of the circle j representing the node j are represented by C
j (x cj , y cj ). At this time, x ci ← r × (x ci −x ct ) + x ct (Equation 5) y ci ← r × (y ci −y ct ) + y ct (Equation 6) for all the centers of the circles corresponding to each node of the graph figure ) Is performed. Here, N is a set of all nodes in the graph, and i∈N. However, if A ← B, first B
Is calculated, and the value is substituted into A.

【0038】その後、拡大の中心として指定されたノー
ドtを中心にウィンドウ上にグラフ図形を描画する。描
画の余白については、描画の余白を示す適当な値αx
αyにたいし、以下のように設定する。
Thereafter, a graph figure is drawn on the window centering on the node t designated as the center of enlargement. For the drawing margin, an appropriate value α x , which indicates the drawing margin,
For α y , set as follows.

【0039】[0039]

【数5】 (Equation 5)

【0040】図5(a)はマウス等のポインティングデバ
イスでグラフ図形の縮小の中心を指定したところであ
る。図5(b)は、図5(a)のグラフ図形を前述の拡大の場
合と同様の手法で、指定された縮小率で縮小した図であ
る。図5(b)のようにこの縮小においては、ノードの間
隔のみを縮小し、ノード自体の大きさは変えない。図5
(b)のように縮小することにより、グラフ構造全体がよ
くわかり、またノードの大きさを変えないため、ノード
に記述されている情報を失うことはない。
FIG. 5A shows a state in which the center of reduction of a graph figure is designated by a pointing device such as a mouse. FIG. 5B is a diagram in which the graph graphic of FIG. 5A is reduced at a designated reduction ratio by a method similar to the above-described enlargement. As shown in FIG. 5B, in this reduction, only the interval between nodes is reduced, and the size of the node itself is not changed. FIG.
By reducing the size as in (b), the entire graph structure can be easily understood, and the size of the node is not changed, so that information described in the node is not lost.

【0041】次に、図6を用いて本実施の形態の処理の
流れの詳細を説明する。ステップ140では、コマンド
またはデータの入力を待つ。コマンドまたはデータが入
力されると処理をステップ141へ移す。ステップ14
1では、入力されたコマンドまたはデータが編集コマン
ドかどうかを判断する。入力されたコマンドまたはデー
タがグラフ編集の処理を行うためのものなら、処理をス
テップ144へ移し、そうでないなら処理をステップ1
42へ移す。ステップ142では、入力されたコマンド
またはデータがグラフの自動描画処理に関するものかど
うかを判断する。入力されたコマンドまたはデータがグ
ラフの自動描画処理に関するものなら、処理をステップ
145へ移し、そうでないなら処理をステップ143へ
移す。ステップ143では、入力されたコマンドまたは
データが終了コマンドかどうかを判断する。入力された
コマンドまたはデータが終了コマンドなら、処理を終了
する。入力されたコマンドまたはデータが終了コマンド
でないなら、処理をステップ146へ移し他の処理を行
う。ステップ144では、入力されたコマンドまたはデ
ータに従い、グラフ図形の編集処理を行う。ステップ1
45では、入力されたコマンドまたはデータに従い、グ
ラフ図形の自動配置を行いこの結果を出力装置に描画す
るといったグラフ図形の自動描画処理を行う。ステップ
146では、グラフ図形の編集処理、グラフ図形の自動
描画処理以外の処理を行う。
Next, the details of the processing flow of this embodiment will be described with reference to FIG. In step 140, input of a command or data is waited. When a command or data is input, the process proceeds to step 141. Step 14
In step 1, it is determined whether the input command or data is an edit command. If the input command or data is for performing a graph editing process, the process proceeds to step 144; otherwise, the process proceeds to step 1.
Move to 42. In step 142, it is determined whether the input command or data relates to the automatic drawing process of the graph. If the input command or data relates to the graph automatic drawing process, the process proceeds to step 145; otherwise, the process proceeds to step 143. In step 143, it is determined whether the input command or data is an end command. If the input command or data is an end command, the process ends. If the input command or data is not an end command, the process proceeds to step 146 to perform another process. In step 144, a graph graphic is edited according to the input command or data. Step 1
At step 45, automatic drawing processing of the graph figure is performed such that the graph figure is automatically arranged according to the input command or data and the result is drawn on the output device. In step 146, processes other than the graph graphic editing processing and the graph graphic automatic drawing processing are performed.

【0042】図7(a)はグラフ図形エディタでユーザが
入力したグラフ図形の描画例であり、ユーザが思いつく
ままに描いたためアークの交差が多くまた、ノードの配
置も見やすい配置になっていない。図7(b)は図7(a)の
グラフ図形に対し本実施の形態のグラフ図形配置法を適
用したグラフ図形の描画例であり、見やすい描画となっ
ている。また、図8(a)はおよそ円周上に並んだ81個
のノードをアークで結んだ図であり、ノード同士の接続
関係は非常に分かりにくい。図8(b)は図8(a)の図に対
して本実施の形態のグラフ図形配置法を適用した例であ
り、見やすく、各ノードの接続関係もわかりやすいもの
になっている。
FIG. 7A is a drawing example of a graph graphic input by the user with the graph graphic editor. Since the user draws the graph graphic as desired, there are many intersections of arcs, and the arrangement of the nodes is not easy to see. FIG. 7B is a drawing example of a graph graphic obtained by applying the graph graphic arrangement method of the present embodiment to the graph graphic of FIG. FIG. 8A is a diagram in which 81 nodes arranged on a circle are connected by an arc, and the connection relationship between the nodes is very difficult to understand. FIG. 8B is an example in which the graph / graphic arrangement method of the present embodiment is applied to the diagram of FIG. 8A, and is easy to see and the connection relation between the nodes is easy to understand.

【0043】実施の形態2. 本発明の実施の形態2を図面に基づいて説明する。本発
明の実施の形態2によるグラフ配置法を用いたグラフ配
置装置の構成は、実施の形態1において図1で示したも
のと同様である。
Embodiment 2 Embodiment 2 of the present invention will be described with reference to the drawings. The configuration of the graph layout device using the graph layout method according to the second embodiment of the present invention is the same as that shown in FIG. 1 in the first embodiment.

【0044】次に、グラフ図形配置部103で用いられ
ているグラフ図形配置法について詳細を説明する。グラ
フ図形配置部103は、グラフ図形を自動的に見やすく
配置する処理手段を備えている。本実施の形態ではグラ
フ図形の配置法として、グラフの各連結成分に対し平面
上に配置するときのノード間の理想距離を決め、このノ
ード間の理想距離と実際の距離との誤差に適当な関数値
を掛けたものをノード間に働く力として定義し、各ノー
ドに働く力が平面配置上で平衡状態になるようなノード
の配置を求めるというグラフ図形配置法を用いる。但
し、前処理としてグラフ中の多重枝、自己閉路は取り除
き、後処理として前処理で取り除いた多重枝、自己閉路
を復元してグラフ図形を描画する。
Next, the graph graphic arrangement method used in the graph graphic arrangement unit 103 will be described in detail. The graph figure arranging unit 103 includes processing means for automatically arranging the graph figures so as to be easily viewed. In the present embodiment, as a method of arranging a graph figure, an ideal distance between nodes when arranging each connected component of the graph on a plane is determined, and an error between the ideal distance between the nodes and the actual distance is determined. A graph graphic arrangement method is used in which the product of the function values is defined as the force acting between the nodes, and the arrangement of the nodes is determined such that the forces acting on each node are balanced on a plane arrangement. However, the multi-branch and the self-cycle in the graph are removed as the pre-processing, and the multi-branch and the self-cycle removed in the pre-processing are restored as the post-processing to draw the graph graphic.

【0045】なお、本実施の形態で用いる距離としては
ユークリッド距離を用いるが、ハミング距離等の他の距
離を用いても同様の議論ができる。またグラフ図形の描
画を行う座標系の次元は2次元でも3次元でもよく、一
般にn次元でもよい(n=1,2,3,4,…)。ただし、本実施
の形態で対象とするグラフは連結であるとし、連結でな
いグラフについては、そのおのおのの連結成分に本実施
の形態を適用することにする。
Although the Euclidean distance is used as the distance used in the present embodiment, the same discussion can be made using other distances such as the Hamming distance. The dimension of the coordinate system for drawing the graph figure may be two-dimensional or three-dimensional, and may be generally n-dimensional (n = 1, 2, 3, 4,...). However, it is assumed that the target graph in the present embodiment is connected, and the present embodiment is applied to each connected component of a graph that is not connected.

【0046】まずアークaijの両端のノードi、j間の
グラフ図形上の理想的な距離eijを、ノードiおよびノ
ードjの状態によって、例えば eij=L・(ni+nj1/2 但しeij≧Pの場合eij=P (式9) のように定義する。但し、式9においてLはノード間の
長さの基準となるスケーリング定数、niはノードiに
接続するアークの数の合計であり、njも同様にノード
jに接続するアークの数の合計である。Pはノード間の
理想距離をある値以下にするための定数である。式9に
よりアークの理想的な長さは(ni+nj)の増加関数と
なる。つまり、式9によって、アークaijの両端のノー
ドi、jに接続するアークの数が多いほど、ノードi,
j間の理想的な距離eijは長くなる。しかしながら、ノ
ードi,j間の理想的な距離の定義は式9の形だけに限
るものではなく、1つのアークで結ばれるノード間の理
想的な距離をそのノードの状態によって決定するもので
あれば、目的に応じて自由に設定することができる。
First, the ideal distance e ij on the graph figure between the nodes i and j at both ends of the arc a ij is determined by the state of the nodes i and j, for example, e ij = L · (n i + n j ) 1 / 2 where e ij ≧ P, it is defined as e ij = P (Equation 9). However, scaling constant in equation 9 L is made the length of the reference between the nodes, n i is the total number of arcs connected to node i, the total number of arcs connected to n j likewise node j It is. P is a constant for reducing the ideal distance between nodes to a certain value or less. According to Equation 9, the ideal length of the arc is an increasing function of (n i + n j ). That is, according to Equation 9, as the number of arcs connected to the nodes i, j at both ends of the arc a ij increases, the nodes i, i
The ideal distance e ij between j becomes longer. However, the definition of the ideal distance between the nodes i and j is not limited to the form of the expression 9, and the ideal distance between the nodes connected by one arc is determined by the state of the node. For example, it can be set freely according to the purpose.

【0047】また、式9で定義されるeijをアークaij
の理想的な長さとし、1つのアークで結ばれないような
隣接しないノードm,n間の理想距離をノードm,n間
のパスを構成するアークの理想距離の合計の長さとす
る。
Further, e ij defined by Expression 9 is replaced with arc a ij
And the ideal distance between non-adjacent nodes m and n that are not connected by one arc is the total length of the ideal distances of the arcs forming the path between nodes m and n.

【0048】本実施の形態のグラフ配置アルゴリズムは
ノード間の距離ができるだけノード間の理想的な距離に
なるようにグラフを配置するため、ノード間の理想的な
距離の定義に従いノード間の距離をグラフの構造によっ
て決定することができ、ノード間の距離の定義が式9の
場合は次数の高いノードを含むグラフも見やすく配置す
ることができる。
Since the graph arranging algorithm of the present embodiment arranges a graph so that the distance between nodes is as ideal as possible between nodes, the distance between nodes is defined according to the definition of the ideal distance between nodes. It can be determined by the structure of the graph, and when the definition of the distance between nodes is Expression 9, a graph including a node with a high degree can also be arranged in a legible manner.

【0049】次にノードi,j間に働く力Fijを Fij=f(Iij)・(Rij−eij) (式10) と定義する。但し、式10においてfは常に正の値をと
る適当な関数、Iijはノードiとノードj間のグラフ理
論上の距離である。eijはノードi,j間のグラフ図形
上の理想距離、Rijはノードi,j間のグラフ図形上の
実際の距離である。式10の(Rij−eij)の部分はノ
ードi,j間の距離がノードi,j間の理想距離よりも
小さい場合に負の値をとり、ノードi,j間の距離がノ
ードi,j間の理想距離よりも大きい場合に正の値をと
る。今f>0なので、結局式10で定義される力はノー
ドi,j間の距離がノードi,j間の理想距離よりも小
さい場合に斥力となり、ノードi,j間の距離がノード
i,j間の理想距離よりも大きいときには引力となる。
Next, the force F ij acting between the nodes i and j is defined as F ij = f (I ij ) · (R ij -e ij ) (Equation 10). In Equation 10, f is an appropriate function that always takes a positive value, and I ij is a graph theoretical distance between the nodes i and j. e ij is an ideal distance on the graph graphic between nodes i and j, and R ij is an actual distance on the graph graphic between nodes i and j. The (R ij -e ij ) portion of Equation 10 takes a negative value when the distance between the nodes i and j is smaller than the ideal distance between the nodes i and j, and the distance between the nodes i and j is the node i , J takes a positive value when the distance is larger than the ideal distance. Now, since f> 0, the force defined by Expression 10 becomes a repulsive force when the distance between the nodes i and j is smaller than the ideal distance between the nodes i and j, and the distance between the nodes i and j becomes the node i, j. When it is larger than the ideal distance between j, it becomes an attractive force.

【0050】また式10におけるf(Iij)として適当な
関数を定義することにより、ノード間のグラフ理論上の
距離が離れる程にノード間に働く力Fをより小さくする
ことができる。これによりグラフ全体のバランスに配慮
しつつ、局所的なバランスのとれたグラフの配置を行う
ことができる。本実施の形態ではf(Iij)を f(Iij)=K/Iij 3 (式11) のように定義する。ここで、Kは適当な正の定数であ
る。これにより、f(Iij)はIijの減少関数となり、ノ
ード間のグラフ理論上の距離が離れる程に、ノード間の
実際の距離とノード間の理想距離との誤差の大きさに対
して相対的にノード間に働く力を小さくすることがで
き、これによりグラフ全体のバランスに配慮しつつ、局
所的なバランスのとれたグラフの配置を行うことができ
る。しかしながら、ノード間の力の定義は式10、11
に限るものではなく、ノード間のグラフ理論上の距離が
離れるほどにその大きさが適切な程度で小さくなるよう
なものであればよい。先に述べたように、本実施の形態
のグラフ図形配置法では、式10で定義されるノード間
に働く力が平衡状態になるようにノードの配置を逐次的
に変えていく。
By defining an appropriate function as f (I ij ) in Equation 10, the force F acting between the nodes can be made smaller as the graph theoretical distance between the nodes increases. As a result, a locally balanced graph can be arranged while considering the balance of the entire graph. In the present embodiment, f (I ij ) is defined as f (I ij ) = K / I ij 3 (Equation 11). Here, K is an appropriate positive constant. Thus, f (I ij ) becomes a decreasing function of I ij , and as the graph theoretical distance between the nodes increases, the difference between the actual distance between the nodes and the ideal distance between the nodes increases. The force acting between the nodes can be made relatively small, so that a locally balanced graph can be arranged while considering the balance of the entire graph. However, the definition of the force between the nodes is
The size is not limited to this, and any size may be used as long as the distance in the graph theory between nodes increases as the distance increases. As described above, in the graph graphic arrangement method according to the present embodiment, the arrangement of nodes is sequentially changed so that the forces acting between the nodes defined by Expression 10 are in an equilibrium state.

【0051】次に図9によりグラフ図形配置部103の
処理について説明する。ステップ120では、グラフデ
ータ記憶部106からデータを取りだす。ステップ12
1以下の操作を、ステップ120で取り出したグラフデ
ータの各連結成分それぞれについて行う。ステップ12
1では、グラフデータから多重枝、自己閉路を取り除
く。ステップ122では、ループ用のカウンタであるco
untの値を0にする。ステップ123では、各ノード間
の理想距離を求める。ステップ124では、アルゴリズ
ムの終了を判定する。式10で定義されるFがあらかじ
め設定した基準値より小さいか、countの値が設定値よ
り大きい場合終了する。ステップ125では、配置し終
えたグラフ図形のデータをグラフデータ記憶部106へ
記憶させる。ステップ126では、countの値を1だけ
増やす。ステップ200では、式10のFの値を小さく
するようにノードの位置を変更する。ステップ128で
は、逐次描画フラグがONかOFFかを判断する。逐次
描画フラグがONならば処理をステップ129へ移しそ
うでないなら処理をステップ124へ移す。ステップ1
29では、countの値が描画条件を満たすかを判断す
る。逐次描画の割合を決めるために設定された、ループ
を何回行うごとにグラフ図形を描画するかを示す値Cに
対し、countがCで割り切れた場合は処理をステップ1
30へ移し、割り切れない場合は処理をステップ124
に移す。ステップ130では、現在表示されているグラ
フ図形を消去し、かわりにステップ200で変更された
グラフ図形を表示する。これにより、グラフ図形の自動
配置処理によるグラフ図形の変化を適切な進度で連続的
に表示することができる。
Next, the processing of the graph graphic arrangement unit 103 will be described with reference to FIG. In step 120, data is extracted from the graph data storage unit 106. Step 12
The following operations are performed for each connected component of the graph data extracted in step 120. Step 12
In step 1, multiple branches and self-cycles are removed from the graph data. In step 122, the counter for the loop, co
Set the value of unt to 0. In step 123, an ideal distance between each node is obtained. In step 124, the end of the algorithm is determined. When F defined by Expression 10 is smaller than the preset reference value or when the value of count is larger than the set value, the process ends. In step 125, the graph data that has been arranged is stored in the graph data storage unit 106. In step 126, the value of count is increased by one. In step 200, the position of the node is changed so as to reduce the value of F in Expression 10. In step 128, it is determined whether the drawing flag is ON or OFF. If the sequential drawing flag is ON, the process proceeds to step 129; otherwise, the process proceeds to step 124. Step 1
At 29, it is determined whether the value of count satisfies the drawing condition. If the count is divisible by C with respect to the value C which is set to determine the ratio of the sequential drawing and indicates how many times the loop is drawn, the processing is performed in step 1
Move to 30 and if not divisible, proceed to step 124
Transfer to In step 130, the currently displayed graph graphic is deleted, and the graph graphic changed in step 200 is displayed instead. As a result, it is possible to continuously display the change of the graph figure due to the automatic arrangement processing of the graph figure at an appropriate progress.

【0052】次に、複数の連結部分を処理する自動描画
処理の流れの詳細を図10を用いて説明する。まずステ
ップ220においてグラフ図形の各連結成分について、
グラフ図形の配置を決定する。ステップ221では、グ
ラフ図形の描画が1ウィンドウへの描画か、複数ウィン
ドウの描画かを指定する。グラフの描画が1ウィンドウ
への描画なら、処理をステップ222へ移し、そうでな
いなら処理をステップ226へ移す。ステップ222で
は、1ウィンドウへのグラフ図形の描画位置の計算を行
う。
Next, details of the flow of the automatic drawing process for processing a plurality of connected portions will be described with reference to FIG. First, in step 220, for each connected component of the graph graphic,
Determine the placement of the graph shape. In step 221, it is specified whether the drawing of the graph figure is to be drawn in one window or a plurality of windows. If the graph is drawn in one window, the process proceeds to step 222; otherwise, the process proceeds to step 226. In step 222, the drawing position of the graph figure in one window is calculated.

【0053】具体的には、まず図11のようにグラフ図
形の各連結成分1〜nそれぞれを覆うことのできる、各
辺がx軸または、y軸に平行で、面積が最小であるよう
な長方形A1111,…,長方形Annnnを考え
る。なお、図11の219は各ノードの位置を決定する
ための座標系である。各連結成分は適当な平行移動によ
りこの長方形A1111,…,長方形Annnn内に
描画することができるので、後述する図12のアルゴリ
ズムに従いこの長方形A1111,…,長方形Ann
nnを1ウィンドウ上に配置し、その配置された長方形
内にグラフ図形の各連結成分を描画する。ステップ22
3では、グラフ図形の描画領域に合わせて描画ウィンド
ウのサイズを変更するかどうかを指定する。グラフ図形
の描画領域に合わせて描画ウィンドウのサイズを変更す
るなら、処理をステップ224へ移し、そうでないなら
処理をステップ225へ移す。ステップ224では、グ
ラフ図形の描画領域に合わせて描画ウィンドウのサイズ
を変更して、グラフ図形の描画を行う。ステップ225
では、描画ウィンドウのサイズを変更せずにグラフの描
画を行う。
More specifically, first, as shown in FIG. 11, each of the connected components 1 to n of the graph figure can be covered, and each side is parallel to the x-axis or the y-axis and has the smallest area. Consider a rectangle A 1 B 1 C 1 D 1 ,..., A rectangle A n B n C n D n . Note that reference numeral 219 in FIG. 11 is a coordinate system for determining the position of each node. Each connected component can be drawn in this rectangle A 1 B 1 C 1 D 1 ,..., Rectangle A n B n C n D n by appropriate translation, so that this rectangle A 1 B 1 C 1 D 1 , ..., rectangle A n B n C
n D n is arranged on one window, and each connected component of the graph figure is drawn in the arranged rectangle. Step 22
In step 3, the user specifies whether to change the size of the drawing window in accordance with the drawing area of the graph figure. If the size of the drawing window is changed according to the drawing area of the graph figure, the process proceeds to step 224; otherwise, the process proceeds to step 225. In step 224, the size of the drawing window is changed according to the drawing area of the graph figure to draw the graph figure. Step 225
Now, the graph is drawn without changing the size of the drawing window.

【0054】ステップ226では、複数のウィンドウの
グラフ図形の描画位置の計算を行う。描画位置の計算に
はステップ222で用いられる方法をそれぞれのウィン
ドウとそれに対応したグラフの連結成分もしくは連結成
分の集合に適用する。ステップ227では、グラフ図形
の描画領域に合わせて描画ウィンドウのサイズを変更す
るかどうかを指定する。グラフ図形の描画領域に合わせ
て描画ウィンドウのサイズを変更するなら、処理をステ
ップ228へ移し、そうでないなら処理をステップ22
9へ移す。ステップ228では、グラフの各連結成分も
しくは連結成分の集合の描画領域に合わせてそれぞれの
描画ウィンドウのサイズを変更して、グラフ図形の描画
を行う。ステップ229では、描画ウィンドウのサイズ
を変更せずにグラフの描画を行う。
In step 226, the drawing positions of the graph figures in a plurality of windows are calculated. To calculate the drawing position, the method used in step 222 is applied to each window and a connected component or a set of connected components of the graph corresponding thereto. In step 227, it is specified whether or not the size of the drawing window is changed according to the drawing area of the graph graphic. If the size of the drawing window is changed in accordance with the drawing area of the graph figure, the process proceeds to step 228; otherwise, the process proceeds to step 22.
Move to 9. In step 228, the size of each drawing window is changed in accordance with the drawing area of each connected component or a set of connected components of the graph, and the graph figure is drawn. In step 229, the graph is drawn without changing the size of the drawing window.

【0055】次に、ステップ222で用いる描画のアル
ゴリズムの詳細を、図12を用いて説明する。ただし、
長方形A1111の辺A11の長さを
Next, the details of the drawing algorithm used in step 222 will be described with reference to FIG. However,
The length of the side A 1 B 1 of the rectangle A 1 B 1 C 1 D 1

【0056】[0056]

【数6】 (Equation 6)

【0057】のように表す。また 、βx,βyはグラフ
図形の余白を決める正の値であり、aは描画の横幅を決
める定数である。ステップ230では、グラフ図形の配
置の余白を決めるIx,Iy、配置中の長方形の番号を示
すi、配置中の列の最初の長方形を示すcをそれぞれ、
x=βx,Iy=βy,i=1、c=1に初期化する。ス
テップ231では、長方形Aiiiiを点Aiの座標
が(Ix,Iy)となるように配置する。ステップ232
では、Ixを、
It is expressed as follows. Β x and β y are positive values that determine the margin of the graph figure, and a is a constant that determines the horizontal width of the drawing. In step 230, I x and I y that determine the margin of the layout of the graph figure, i indicating the number of the rectangle being arranged, and c indicating the first rectangle of the column being arranged are given, respectively.
Initialize I x = β x , I y = β y , i = 1 and c = 1. In step 231, the rectangle A i B i C i D i is arranged such that the coordinates of the point A i are (I x , I y ). Step 232
Now, I x

【0058】[0058]

【数7】 (Equation 7)

【0059】とし、その後iをi=i+1として、配置
の対象を次の長方形に移す。ステップ233では、iが
nより大きいかどうかを判断する。iがnより大きいと
き、つまり長方形の配置が終了したとき処理をステップ
235へ移す。iがn以下のとき、つまり長方形の処理
が終了していないときは、処理をステップ234へ移
す。ステップ234では、Ixがaより大きいかどうか
を判断する。Ixがaより大きいとき、つまり長方形の
配置位置が望ましいウィンドウの横幅のサイズを超えた
ときは、処理をステップ236へ移す。Ixがa以下の
ときは、処理をステップ231へ戻す。ステップ235
では、Ix,Iyを、それぞれ
Then, i is set as i = i + 1, and the object of arrangement is moved to the next rectangle. In step 233, it is determined whether i is greater than n. When i is larger than n, that is, when the arrangement of the rectangle is completed, the process proceeds to step 235. When i is equal to or less than n, that is, when the rectangular processing is not completed, the processing moves to step 234. In step 234, it is determined whether Ix is greater than a. When Ix is larger than a, that is, when the arrangement position of the rectangle exceeds the desired width of the window, the process proceeds to step 236. If Ix is equal to or smaller than a, the process returns to step 231. Step 235
Then, I x and I y are respectively

【0060】[0060]

【数8】 (Equation 8)

【0061】として、長方形の描画位置をウィンドウの
左端にする。ただし、
The drawing position of the rectangle is set at the left end of the window. However,

【0062】[0062]

【数9】 (Equation 9)

【0063】の最大値である。またIyの更新後cをc
=iとする。ステップ236では、グラフ図形の連結成
分を、それに対応したウィンドウ上の各長方形の領域に
合うように平行移動して描画する。ステップ237で
は、ウィンドウをグラフ図形の描画領域全体を表示でき
る大きさに調整する。
Is the maximum value. Also, after updating I y , c
= I. In step 236, the connected components of the graph figure are translated and drawn so as to fit into the respective rectangular areas on the window corresponding to the connected components. In step 237, the window is adjusted to a size that can display the entire drawing area of the graph graphic.

【0064】図13〜15は本実施の形態に係るグラフ
図形の自動描画の例である。図13は3つの連結成分か
らなるグラフを1ウィンドウ上に描画した例であり、グ
ラフの各連結成分間の編集が容易になる。また、図14
は3つの連結成分からなるグラフを3つのウィンドウ上
に描画した例であり、個々のグラフの連結成分の編集が
容易になる。また、図15は3つの連結成分からなるグ
ラフのうち2つの連結成分を1つのウィンドウ上に、残
る1つの連結成分を別のウィンドウ上に描画した例であ
り、特定のグラフ連結成分間の編集が容易になる。
FIGS. 13 to 15 show examples of automatic drawing of graph figures according to the present embodiment. FIG. 13 shows an example in which a graph composed of three connected components is drawn on one window, and editing between the connected components of the graph is facilitated. FIG.
Is an example in which a graph composed of three connected components is drawn on three windows, and editing of the connected components of each graph is facilitated. FIG. 15 shows an example in which two connected components of a graph consisting of three connected components are drawn on one window, and the remaining one connected component is drawn on another window. Becomes easier.

【0065】実施の形態3. 本発明の実施の形態3を図面に基づいて説明する。図1
6は本発明の一実施の形態によるグラフ図形描画法を用
いたハイパーテキストエディタ(編集)装置の構成図で
ある。図に示すように、本装置は入力装置300、ハイ
パーテキスト編集装置301、および出力装置302か
らなる。また、ハイパーテキスト編集装置301は、シ
ステム管理部303、ハイパーテキスト管理部304、
ハイパーテキスト出力部305、ハイパーテキスト処理
部306、ハイパーテキスト記憶部307、グラフエデ
ィタ管理部308、グラフ図形編集部309、グラフ図
形配置部310、グラフ図形出力部311、グラフデー
タ抽出部312、およびグラフデータ記憶部313を備
えている。この実施の形態のハイパーテキストエディタ
装置は、ハイパーテキストのリンク作成、文章内容の変
更などができる従来のハイパーテキストエディタ装置に
ハイパーテキスト構造をグラフ図形として描画・編集す
ることができる機能を追加したものである。
Embodiment 3 Embodiment 3 of the present invention will be described with reference to the drawings. FIG.
FIG. 6 is a configuration diagram of a hypertext editor (editing) device using a graph graphic drawing method according to an embodiment of the present invention. As shown in the figure, the present device includes an input device 300, a hypertext editing device 301, and an output device 302. The hypertext editing device 301 includes a system management unit 303, a hypertext management unit 304,
Hypertext output unit 305, hypertext processing unit 306, hypertext storage unit 307, graph editor management unit 308, graph graphic editing unit 309, graph graphic arrangement unit 310, graph graphic output unit 311, graph data extraction unit 312, and graph A data storage unit 313 is provided. The hypertext editor device according to the present embodiment is a conventional hypertext editor device capable of creating hypertext links, changing text contents, and the like, and adding a function of drawing and editing a hypertext structure as a graph figure. It is.

【0066】システム管理部303は、入力の情報に従
い、ハイパーテキスト管理部304または、グラフエデ
ィタ管理部308に情報を伝える。ハイパーテキスト管
理部304は、システム管理部303からの情報に従
い、ハイパーテキスト処理部306に処理を移したり、
ハイパーテキスト出力部305に処理を移したりする。
ハイパーテキスト出力部305は、ハイパーテキスト管
理部304の情報に従い、ハイパーテキストデータ記憶
部307のデータをもとに、出力装置302に出力す
る。ハイパーテキスト処理部306は、ハイパーテキス
ト管理部304の情報に従い、ハイパーテキストに対し
削除、追加、リンク付けなどの各種処理を行う。ハイパ
ーテキストデータ記憶部307は、ハイパーテキストデ
ータを記憶する手段を備えており、ハイパーテキストデ
ータの記憶、読み出しを行う。グラフエディタ管理部3
08はシステム管理部303からの情報に従い、グラフ
図形編集部309またはグラフ図形配置部310または
グラフ図形出力部311またはグラフデータ抽出部に処
理を移す。グラフ編集部309はグラフエディタ管理部
308からの情報に従い、グラフの編集を行う手段を備
えている。編集内容は、ノードの追加および削除および
移動、アークの追加および削除などである。グラフ図形
配置部310は、2種類のグラフ図形自動配置法A,B
を備えており、そのどちらかもしくはその両方に基づい
てグラフ図形を配置する手段を備えている。グラフ図形
出力部311は、グラフエディタ管理部308の情報に
従い、グラフデータ記憶部のグラフデータを出力装置に
出力する。グラフデータ抽出部312はグラフエディタ
管理部308からの情報に従い、ハイパーテキストデー
タ記憶部307からリンクの飛び先等のハイパーテキス
ト構造をグラフデータとして抽出する。グラフデータ記
憶部313は、グラフデータを記憶する手段を備えてお
り、グラフエディタ管理部308の情報に従い、グラフ
データの記憶、読み出しを行う。
The system management unit 303 transmits information to the hypertext management unit 304 or the graph editor management unit 308 according to the input information. The hypertext management unit 304 transfers processing to the hypertext processing unit 306 according to information from the system management unit 303,
The processing is transferred to the hypertext output unit 305.
The hypertext output unit 305 outputs to the output device 302 based on the data in the hypertext data storage unit 307 according to the information of the hypertext management unit 304. The hypertext processing unit 306 performs various processes such as deletion, addition, and linking on the hypertext according to the information of the hypertext management unit 304. The hypertext data storage unit 307 includes means for storing hypertext data, and stores and reads hypertext data. Graph editor management unit 3
In step 08, according to the information from the system management unit 303, the processing is shifted to the graph graphic editing unit 309, the graph graphic arranging unit 310, the graph graphic output unit 311, or the graph data extracting unit. The graph editing unit 309 includes means for editing a graph in accordance with information from the graph editor management unit 308. Edit contents include addition, deletion and movement of nodes, addition and deletion of arcs, and the like. The graph graphic arranging unit 310 includes two types of automatic graph graphic arranging methods A and B.
And means for arranging a graph figure based on one or both of them. The graph graphic output unit 311 outputs the graph data in the graph data storage unit to the output device according to the information of the graph editor management unit 308. The graph data extraction unit 312 extracts a hypertext structure such as a link jump destination from the hypertext data storage unit 307 as graph data according to the information from the graph editor management unit 308. The graph data storage unit 313 includes a unit that stores graph data, and stores and reads graph data according to the information of the graph editor management unit 308.

【0067】次に、本実施の形態の処理の流れの詳細を
図17を用いて説明する。まず、ステップ321では、
コマンドまたはデータの入力を待つ。コマンドまたはデ
ータが入力されると、処理をステップ322に移す。ス
テップ322では、入力されたコマンドまたはデータが
ハイパーテキストを処理するものかどうかを判断する。
入力されたコマンドまたはデータがハイパーテキストを
処理するものなら、処理をステップ327へ移し、そう
でないなら、処理をステップ323へ移す。ステップ3
23では、入力されたコマンドまたはデータがグラフ図
形の処理をするものかどうかを判断する。入力されたコ
マンドまたはデータがグラフ図形の処理をするものな
ら、処理をステップ324へ移し、そうでないなら処理
をステップ336へ移す。ステップ324では、入力さ
れたコマンドまたはデータがグラフ図形配置の処理を行
うためのものかどうかを判断する。入力されたコマンド
またはデータがグラフ図形配置の処理を行うためのもの
であれば処理をステップ333へ移し、そうでないなら
処理をステップ325へ移す。ステップ325では、入
力されたコマンドまたはデータがグラフ図形編集の処理
を行うためのものかどうかを判断する。入力されたコマ
ンドまたはデータがグラフ図形編集の処理を行うための
ものであれば、処理をステップ328へ移し、そうでな
いなら処理をステップ326へ移す。ステップ326で
はグラフの処理において、自動配置、グラフ図形編集以
外の処理を行う。ここでは、ハイパーテキストへの反映
フラグのON、OFFの設定、逐次描画フラグのON,
OFFの設定、グラフ図形配置法の指定等も行う。
Next, details of the processing flow of the present embodiment will be described with reference to FIG. First, in step 321,
Wait for command or data input. When a command or data is input, the process proceeds to step 322. In step 322, it is determined whether the input command or data is for processing a hypertext.
If the input command or data is for processing hypertext, the process proceeds to step 327; otherwise, the process proceeds to step 323. Step 3
At 23, it is determined whether or not the input command or data is for processing a graph graphic. If the input command or data is for processing a graph graphic, the process proceeds to step 324; otherwise, the process proceeds to step 336. In step 324, it is determined whether or not the input command or data is for performing the processing of graph graphic arrangement. If the input command or data is for performing the processing of graph graphic arrangement, the process proceeds to step 333; otherwise, the process proceeds to step 325. In step 325, it is determined whether or not the input command or data is for performing a graphic figure editing process. If the input command or data is for performing the graphic figure editing process, the process proceeds to step 328; otherwise, the process proceeds to step 326. In step 326, in the graph processing, processing other than automatic arrangement and graph figure editing is performed. Here, ON / OFF of the reflection flag for the hypertext, ON / OFF of the sequential drawing flag,
Setting of OFF, designation of graph graphic arrangement method, and the like are also performed.

【0068】ステップ327では、ハイパーテキストに
関する処理を行う。処理の内容はリンクの作成、削除、
テキスト内容の変更等である。
At step 327, processing relating to the hypertext is performed. The content of the processing is creation, deletion,
For example, the text content is changed.

【0069】ステップ328では、グラフ図形の編集に
関する処理を行う。編集内容は、ノードの追加および削
除および移動、アークの追加および削除などである。ス
テップ329では、ハイパーテキストへの反映フラグが
ONかどうかを判断する。ハイパーテキストへの反映フ
ラグがONならば処理をステップ330へ移し、OFF
ならば処理をステップ334へ移す。ステップ330で
は、グラフ図形の変更をそのグラフ図形作成の際のデー
タのもととなったハイパーテキストに反映する。例えば
図18(a)のグラフ図形を図18(b)のグラフ図形のよう
に、ノード1からノード2へのアークをノード1からノ
ード4へのアークに変更したとき、図18のグラフ図形
のもとになったハイパーテキストにおけるノード1に対
応するアンカーのリンク先も、ノード2に対応するリン
ク先からノード4に対応するリンク先へ変更する。
At step 328, processing relating to editing of the graphic figure is performed. Edit contents include addition, deletion and movement of nodes, addition and deletion of arcs, and the like. In step 329, it is determined whether the reflection flag for the hypertext is ON. If the reflection flag for hypertext is ON, the process proceeds to step 330, and is turned OFF.
If so, the process moves to step 334. In step 330, the change in the graph figure is reflected in the hypertext that was the source of the data when the graph figure was created. For example, when the graph from FIG. 18A is changed from the arc from node 1 to the node 2 to the arc from node 1 to node 4 like the graph in FIG. 18B, the graph in FIG. The link destination of the anchor corresponding to node 1 in the original hypertext is also changed from the link destination corresponding to node 2 to the link destination corresponding to node 4.

【0070】ステップ331では、ハイパーテキストの
リンクが編集され、かつ、逐次描画フラグがONかどう
かを判断する。ハイパーテキストのリンクが編集され、
かつ、逐次描画フラグがONならば、処理をステップ3
32に移し、そうでないなら処理をステップ321に移
す。ステップ332では、入力の情報に従い2種類のグ
ラフ図形配置法Aもしくはグラフ図形配置法Bまたはそ
の両方の方法を用いてグラフ図形の自動配置と描画を行
う。グラフ図形の配置法はいくつかあり、必要に応じて
配置法を任意の数だけ用意すればよい。ここではグラフ
図形の配置法Aを実施の形態2のグラフ図形配置法にお
いて式10のf(eij)を f(eij,Iij)=K/(eij+Iij3 (式16) としたものとする。ここで、Kは適当な正の定数、eij
はノードiとノードj間のグラフ図形上の理想距離、I
ijはノードiとノードj間のグラフ理論上の距離とす
る。これにより、eij+Iijが大きいほどf(eij+I
ij)は小さくなり、ノード間のグラフ理論上の距離が離
れる程に、ノード間の実際の距離とノード間の理想距離
との誤差の大きさに対して相対的にノード間に働く力を
小さくすることができ、グラフ全体のバランスに配慮し
つつ、局所的なバランスのとれたグラフの配置を行うこ
とができる。また、グラフ図形の配置法Bをグラフ図形
の階層的配置法とする。
At step 331, it is determined whether the hypertext link has been edited and the drawing flag is ON. The hypertext link is edited,
If the sequential drawing flag is ON, the process proceeds to step 3
32, otherwise the process moves to step 321. In step 332, automatic placement and drawing of a graph figure are performed using two types of graph figure layout methods A and / or B in accordance with input information. There are several methods for arranging graph figures, and an arbitrary number of arrangement methods may be prepared as needed. Here, f (e ij ) in Equation 10 is changed to f (e ij , I ij ) = K / (e ij + I ij ) 3 (Equation 16) in the graph figure arranging method according to the second embodiment. It is assumed that Where K is an appropriate positive constant, e ij
Is the ideal distance on the graph between node i and node j, I
ij is the graph theoretical distance between node i and node j. Thus, as e ij + I ij increases, f (e ij + I ij
ij ) is smaller, and the greater the graph theoretical distance between the nodes, the smaller the force acting between the nodes relative to the magnitude of the error between the actual distance between the nodes and the ideal distance between the nodes It is possible to place a locally balanced graph while considering the balance of the entire graph. Also, the graph graphic arrangement method B is a hierarchical arrangement method of the graph figures.

【0071】ステップ333では、ステップ332と同
様に、入力の情報に従い2種類のグラフ図形配置法Aも
しくはグラフ図形配置法Bまたはグラフ図形配置法A,
B両方を用いてグラフ図形の自動配置と描画を行う。
In step 333, as in step 332, two types of graph graphic arrangement methods A, B, or A, according to the input information.
Automatic arrangement and drawing of the graph figure are performed using both B.

【0072】ステップ334では、グラフ図形の編集に
対する逐次描画を行うかどうかを判断する。グラフ図形
の編集に対する逐次描画を行うなら、処理をステップ3
33へ移し、そうでないなら、処理をステップ321へ
移す。
In step 334, it is determined whether or not to perform sequential drawing for editing the graphic figure. If you want to perform sequential drawing for editing the graph figure, then go to step 3
33, and if not, the process proceeds to step 321.

【0073】ステップ335では、ハイパーテキストお
よびグラフの処理以外の処理を行う。ステップ336で
は入力されたコマンドまたはデータが終了の処理を行う
ためのものかどうかを判断する。入力されたコマンドま
たはデータが終了の処理を行うためのものであれば、処
理を終了し、そうでないなら、処理をステップ335に
移す。
At step 335, processing other than the processing of the hypertext and the graph is performed. In step 336, it is determined whether or not the input command or data is for end processing. If the input command or data is for performing an end process, the process is terminated; otherwise, the process proceeds to step 335.

【0074】図19〜21は本実施の形態に係るグラフ
図形の自動描画の例である。各ノードは文章を表し、各
アークは文章から文章への飛び先を表している。図19
〜21に見るように本実施の形態のグラフ図形の自動描
画を用いることにより、ハイパーテキストのリンク構造
をわかりやすく、視覚的に表現することができる。図1
9はハイパーテキストのリンク構造をグラフ図形配置法
Aを用いて非階層的なグラフ図形で描画した例である。
このグラフ図形の描画により各文章の接続関係が視覚的
によくわかるようになる。図20は図19と同じハイパ
ーテキストのリンク構造をグラフ図形配置法Bを用いて
階層的なグラフ図形で描画した例である。このグラフ図
形の描画により、適当な文章を親ノードとしたときの各
ノードの階層関係がよくわかるようになる。図21は図
19と同じハイパーテキストのリンク構造をグラフ図形
配置法A,B両方を用いて描画した例である。このグラ
フ図形の描画により、ハイパーテキストの文章の接続関
係や、文章の階層関係等ハイパーテキストのリンク構造
を多角的にとらえることができる。なお、図19〜21
のノードに文書名、アークにリンク名またはアンカー名
を表示するとよりいっそうわかりやすい図解となる。
FIGS. 19 to 21 show examples of automatic drawing of graph figures according to the present embodiment. Each node represents a sentence, and each arc represents a jump from sentence to sentence. FIG.
As shown in FIGS. 21 to 21, the use of the automatic drawing of the graph graphic according to the present embodiment makes it possible to express the link structure of the hypertext easily and visually. FIG.
Reference numeral 9 denotes an example in which a hypertext link structure is drawn as a non-hierarchical graph figure using the graph figure arrangement method A.
By drawing this graph figure, the connection relation of each sentence can be visually understood well. FIG. 20 is an example in which the same hypertext link structure as in FIG. 19 is drawn in a hierarchical graph pattern using the graph pattern arrangement method B. By drawing this graph figure, the hierarchical relationship of each node when an appropriate sentence is set as a parent node can be clearly understood. FIG. 21 is an example in which the same hypertext link structure as in FIG. 19 is drawn by using both the graph graphic arrangement methods A and B. By drawing the graph figure, the hypertext link structure such as the connection relation of the text of the hypertext and the hierarchical relation of the text can be grasped from various angles. 19 to 21.
If the document name is displayed at the node and the link name or anchor name is displayed at the arc, the illustration becomes even easier to understand.

【0075】[0075]

【発明の効果】以上の説明から明らかなように、本発明
によれば、グラフ図形配置部において、複数のノード
と、これらのノード中、接続関係のあるノード間を結ぶ
線として定義したアークとで構成されるグラフ図形をデ
ータとして記憶保持したグラフデータ記憶部からグラフ
図形を取り出し、アークの両端のノードに接続される各
々のアーク数についての増加関数として定義されたノー
ド間の距離の設定目標値算定式から算定されたノード間
距離の設定目標値に基づき、各ノードの配置を非階層的
に決定することにより、グラフ図形の配置を行うことと
したので、グラフ図形構造の特徴に応じてグラフ図形を
配置することができ、見やすいグラフ図形を得ることが
できる。
As is apparent from the above description, according to the present invention , a plurality of nodes are arranged in a graph graphic arrangement unit.
And connect these connected nodes
A graph figure composed of arcs defined as lines
Graph from the graph data storage unit
Take out the figure and connect it to the nodes at both ends of the arc.
No defined as an increasing function for each number of arcs
Between nodes calculated from the target value calculation formula for setting the distance between nodes
Non-hierarchical arrangement of each node based on distance target value
By arranging the graph figure
Therefore , the graph figures can be arranged according to the characteristics of the graph figure structure, and an easy-to-read graph figure can be obtained.

【0076】さらに、複数のアークを介して接続される
2つのノード間の距離の設定目標値を、該ノード間のパ
スを構成するアークの両端のノード間の距離の設定目
標値の和とすることにより、グラフ全体のバランスがと
れた見やすいグラフ図形を得ることができる。
Further, the set value of the distance between two nodes connected via a plurality of arcs is set as the set value of the distance between the nodes at both ends of each arc constituting the path between the nodes.
By setting the sum of the standard values , an easy-to-read graph figure in which the entire graph is balanced can be obtained.

【0077】さらに、グラフ図形配置部において、ノー
ド間の距離の設定目標値と、対応する実際のノード間距
離との差の増加関数の、すべてのノードについての和を
評価関数として定義し、この評価関数の値が平面配置上
で最も小さくなるようにノード配置の変更を逐次的に行
うことにより、グラフ図形構造の特徴に応じてグラフ図
形を配置することができ、見やすいグラフ図形を得るこ
とができる。
Further, in the graph figure arrangement section,
Target value of the distance between nodes and the corresponding actual distance between nodes
The sum of the increasing function of the difference from the separation for all nodes
Defined as an evaluation function, and the value of this evaluation function is
Change the node arrangement sequentially so that
Graphs according to the characteristics of the graph graphic structure
Shapes can be arranged to obtain easy-to-read graph shapes.
Can be.

【0078】さらに、グラフ図形配置部において、ノー
ド間の距離の設定目標値と、対応す る実際のノード間距
離との差に基づいてノード間に働く力を定義し、すべて
のノード間に働く力が平面配置上でバランスするように
ノード配置の変更を逐次的に行うことにより、グラフ図
形構造の特徴に応じてグラフ図形を配置することがで
き、見やすいグラフ図形を得ることができる。
Further, in the graph figure arrangement section,
And setting a target value of the distance between de, distance between actual node the corresponding
Define the forces acting between the nodes based on the difference from the separation
The forces acting between the two nodes balance on a plane
Graph diagram by changing node arrangement sequentially
Graph figures can be arranged according to the features of the shape structure.
And easy-to-see graph figures can be obtained.

【0079】さらに、評価関数値に対するノード間の
離の設定目標値、対応する実際のノード間距離との差
の寄与率をノード間の距離の設定目標値またはノード間
のグラフ理論上の距離の減少関数としたことにより、グ
ラフ図形の部分的なバランスとグラフ図形の全体的なバ
ランスの両方を考慮した見やすいグラフ図形を得ること
ができる。
Further, the distance between nodes with respect to the evaluation function value
By setting the contribution ratio of the difference between the set target value of the separation and the corresponding actual distance between the nodes to the set target value of the distance between the nodes or a decreasing function of the graph theoretical distance between the nodes, It is possible to obtain an easy-to-read graph figure that considers both the overall balance and the overall balance of the graph figure.

【0080】さらに、ノード間の力に対するノード間の
距離の設定目標値と、対応する実際のノード間距離との
差の寄与率をノード間の距離の設定目標値またはノード
間のグラフ理論上の距離の減少関数としたことにより、
グラフ図形構造の特徴に応じてグラフ図形を配置するこ
とができ、見やすいグラフ図形を得ることができる。
In addition, the internode
The target value of the distance and the corresponding actual distance between nodes
Set the contribution ratio of the difference to the distance between nodes.
By using a decreasing function of the graph theoretical distance between
Arrange graph figures according to the characteristics of the graph figure structure.
This makes it possible to obtain an easy-to-read graph figure.

【0081】さらに、グラフ図形配置部において、グラ
フデータ記憶部より、取り出したグラフ図形から、あら
かじめ多重枝および自己閉路を検出して取り除き、グラ
フ図形の配置を終了した後に上記多重枝および自己閉路
を復元することにより、多重枝および自己閉路を含んだ
グラフ図形の配置を行うことができる。
Further, in the graph graphic arrangement section,
From the graph data extracted from the data storage unit ,
Beforehand-out detection to take by dividing the multi-branch and self-closing, Gras
Multi-branch and self-closing
Is restored, a graph figure including multiple branches and a self-cycle can be arranged.

【0082】さらに、複数のノードと、これらのノード
中、接続関係のあるノード間を結ぶ線として定義したア
ークとで構成されるグラフ図形をデータとして記憶保持
したグラフデータ記憶部と、このグラフデータ記憶部か
らグラフ図形を取り出し、アークの両端のノードに接続
される各々のアーク数についての増加関数として定義さ
れたノード間の距離の設定目標値算定式から算定された
ノード間距離の設定目標値に基づき、各ノードの配置を
非階層的に決定することにより、グラフ図形の配置を行
うグラフ図形配置部を備えたので、グラフ図形構造の特
徴に応じてグラフ図形を配置することができ、見やすい
グラフ図形を得ることができる。
Further, a plurality of nodes and these nodes
Is defined as a line connecting nodes
And retains graph figures composed of
Graph data storage unit and the graph data storage unit
From the graph and connect to the nodes at both ends of the arc
Defined as an increasing function for each number of arcs
Calculated from the target value calculation formula
Based on the set target value of the distance between nodes,
By deciding in a non-hierarchical manner, the arrangement of the graph
The graph figure layout section
Graphs can be arranged according to the characteristics, making them easy to see
You can get a graph figure.

【0083】さらに、複数のアークを介して接続される
2つのノード間の距離の設定目標値を、該ノード間のパ
スを構成する各アークの両端のノード間の距離の設定目
標値の和とすることにより、グラフ全体のバランスがと
れた見やすいグラフ図形を得ることができる。
Further, they are connected via a plurality of arcs.
The target value of the distance between two nodes is
Of the distance between the nodes at both ends of each arc that constitutes the
By setting the sum of the standard values, the balance of the entire graph is improved.
It is possible to obtain an easy-to-read graphical figure.

【0084】さらに、グラフ図形配置部において、ノー
ド間の距離の設定目標値と、対応する実際のノード間距
離との差の増加関数の、すべてのノードについての和を
評価関数として定義し、この評価関数の値が平面配置上
で最も小さくなるようにノード配置の変更を逐次的に行
うことにより、グラフ図形構造の特徴に応じてグラフ図
形を配置することができ、見やすいグラフ図形を得るこ
とができる。
Further, in the graph figure arrangement section,
Target value of the distance between nodes and the corresponding actual distance between nodes
The sum of the increasing function of the difference from the separation for all nodes
Defined as an evaluation function, and the value of this evaluation function is
Change the node arrangement sequentially so that
Graphs according to the characteristics of the graph graphic structure
Shapes can be arranged to obtain easy-to-read graph shapes.
Can be.

【0085】さらに、グラフ図形配置部において、ノー
ド間の距離の設定目標値と、対応する実際のノード間距
離との差に基づいてノード間に働く力を定義し、すべて
のノード間に働く力が平面配置上でバランスするように
ノード配置の変更を逐次的に行うことにより、グラフ図
形構造の特徴に応じてグラフ図形を配置することがで
き、見やすいグラフ図形を得ることができる。
Further, in the graph figure arrangement section,
Target value of the distance between nodes and the corresponding actual distance between nodes
Define the forces acting between the nodes based on the difference from the separation
The forces acting between the two nodes balance on a plane
Graph diagram by changing node arrangement sequentially
Graph figures can be arranged according to the features of the shape structure.
And easy-to-see graph figures can be obtained.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の実施の形態によるグラフ図形配置法
を用いたグラフ図形配置装置の構成図である。
FIG. 1 is a configuration diagram of a graph graphic arrangement device using a graph graphic arrangement method according to an embodiment of the present invention.

【図2】 本発明の実施の形態1に係る多重枝、自己閉
路を取り除く処理を説明する流れ図である。
FIG. 2 is a flowchart illustrating a process of removing a multiple branch and a self-cycle according to the first embodiment of the present invention.

【図3】 本発明の実施の形態1に係るグラフ自動配置
の処理を説明する流れ図である。
FIG. 3 is a flowchart illustrating processing of automatic graph placement according to the first embodiment of the present invention.

【図4】 本発明の実施の形態1に係るグラフ図形の拡
大の例を示す説明図である。
FIG. 4 is an explanatory diagram showing an example of enlarging a graph figure according to the first embodiment of the present invention;

【図5】 本発明の実施の形態1に係るグラフ図形の縮
小の例を示す説明図である。
FIG. 5 is an explanatory diagram illustrating an example of reduction of a graph graphic according to the first embodiment of the present invention.

【図6】 本発明の実施の形態1に係る処理を説明する
流れ図である。
FIG. 6 is a flowchart illustrating a process according to the first embodiment of the present invention.

【図7】 本発明の実施の形態1に係るグラフ図形の自
動描画例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of automatic drawing of a graph figure according to the first embodiment of the present invention.

【図8】 本発明の実施の形態1に係るグラフ図形の自
動描画例を示す説明図である。
FIG. 8 is an explanatory diagram showing an example of automatic drawing of a graph figure according to the first embodiment of the present invention.

【図9】 本発明の実施の形態2に係る処理を説明する
流れ図である。
FIG. 9 is a flowchart illustrating processing according to Embodiment 2 of the present invention.

【図10】 本発明の実施の形態2に係るグラフ図形の
ウィンドウ上への描画処理を説明する流れ図である。
FIG. 10 is a flowchart illustrating a process of drawing a graph graphic on a window according to the second embodiment of the present invention.

【図11】 本発明の実施の形態2に係るグラフ図形の
自動描画処理を説明するための説明図である。
FIG. 11 is an explanatory diagram for explaining automatic drawing processing of a graph figure according to the second embodiment of the present invention;

【図12】 本発明の実施の形態2に係るグラフ図形の
自動描画処理を説明する流れ図である。
FIG. 12 is a flowchart illustrating automatic drawing processing of a graph figure according to the second embodiment of the present invention.

【図13】 本発明の実施の形態2に係るグラフ図形の
自動描画例を示す説明図である。
FIG. 13 is an explanatory diagram showing an example of automatic drawing of a graph figure according to the second embodiment of the present invention.

【図14】 本発明の実施の形態2に係るグラフ図形の
自動描画例を示す説明図である。
FIG. 14 is an explanatory diagram showing an example of automatic drawing of a graph figure according to the second embodiment of the present invention.

【図15】 本発明の実施の形態2に係るグラフ図形の
自動描画例を示す説明図である。
FIG. 15 is an explanatory diagram showing an example of automatic drawing of a graph figure according to the second embodiment of the present invention.

【図16】 本発明の実施の形態3によるグラフ図形配
置法を用いたグラフ図形配置装置の構成図である。
FIG. 16 is a configuration diagram of a graph graphic arrangement device using a graph graphic arrangement method according to a third embodiment of the present invention.

【図17】 本発明の実施の形態3に係る処理を説明す
る流れ図である。
FIG. 17 is a flowchart illustrating processing according to Embodiment 3 of the present invention.

【図18】 本発明の実施の形態3に係るグラフ図形の
変更を説明する説明図である。
FIG. 18 is an explanatory diagram illustrating a change of a graph figure according to the third embodiment of the present invention.

【図19】 本発明の実施の形態3に係るグラフ図形の
自動描画例を示す説明図である。
FIG. 19 is an explanatory diagram showing an example of automatic drawing of a graph figure according to the third embodiment of the present invention.

【図20】 本発明の実施の形態3に係るグラフ図形の
自動描画例を示す説明図である。
FIG. 20 is an explanatory diagram showing an example of automatic drawing of a graph figure according to the third embodiment of the present invention.

【図21】 本発明の実施の形態3に係るグラフ図形の
自動描画例を示す説明図である。
FIG. 21 is an explanatory diagram showing an example of automatic drawing of a graph figure according to Embodiment 3 of the present invention.

【図22】 従来例によるグラフ図形の自動描画例を示
す説明図である。
FIG. 22 is an explanatory diagram showing an example of automatic drawing of a graph figure according to a conventional example.

【符号の説明】[Explanation of symbols]

100…入力装置、101…処理装置、102〜106
…処理装置細部、107…出力装置、110〜115…
ステップ、120〜130…ステップ、140〜146
…ステップ、200…ステップ、220〜229…ステ
ップ、219…座標系、230〜237…ステップ、3
00…入力装置、301…ハイパーテキスト編集装置、
302…出力装置、303〜313…ハイパーテキスト
編集装置細部、321〜336…ステップ。
100: input device, 101: processing device, 102 to 106
... Details of processing device, 107 ... Output device, 110-115 ...
Step, 120-130 ... Step, 140-146
... step, 200 ... step, 220 to 229 ... step, 219 ... coordinate system, 230 to 237 ... step, 3
00: input device, 301: hypertext editing device,
302 ... Output device, 303-313 ... Hypertext editing device details, 321-336 ... Steps.

フロントページの続き (56)参考文献 特開 平8−30799(JP,A) 特開 平6−52279(JP,A) 特開 平4−42373(JP,A) Peter Eades,Drawi ng Free Trees,Rese arch Report Intern ational Institute for Advanced Study of Social Informa tion Sciene,日本,Fuj itsu Laboratories LTD,No.91−17E 佐野達郎,グラフの自動描画アルゴリ ズムについて,電子情報通信学会技術研 究報告,日本,電子情報通信学会,1995 年11月10日,Vol.95,No.349, 1−6 FRUCHTERMAN T,Gra ph Drawing by Forc e−directed Placeme nt,SOFTWARE−PRACTI CE AND EXPERIENCE, 米国,John Wiley & So ns,Ltd,Vol.21,No.11, 1129−1164 (58)調査した分野(Int.Cl.7,DB名) G06T 11/20 120 G09G 5/00 G06F 17/50 JICSTファイル(JOIS)Continuation of the front page (56) References JP-A-8-30799 (JP, A) JP-A-6-52279 (JP, A) JP-A-4-42373 (JP, A) Peter Eades, Drawing Free Trees, Research Archive International Institute for Advanced Study of Social Information Science, Japan, Fujitsu Laboratories LTD. 91-17E Tatsuro Sano, Algorithm for Automatic Graph Drawing, IEICE Technical Report, Japan, IEICE, November 10, 1995, Vol. 95, No. 349, 1-6 FRUCH TERMANT, Graph Drawing by Forked Directed Placement, SOFTWARE-PRACTI CE AND EXPERIENCE, USA, John Wiley & Sons, Ltd., USA. 21, No. 11, 1129-1164 (58) Field surveyed (Int. Cl. 7 , DB name) G06T 11/20 120 G09G 5/00 G06F 17/50 JICST file (JOIS)

Claims (11)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 グラフ図形配置部において、複数のノー
ドと、これらのノード中、接続関係のあるノード間を結
ぶ線として定義したアークとで構成されるグラフ図形を
データとして記憶保持したグラフデータ記憶部からグラ
フ図形を取り出し、アークの両端のノードに接続される
各々のアーク数についての増加関数として定義されたノ
ード間の距離の設定目標値算定式から算定されたノード
間距離の設定目標値に基づき、各ノードの配置を非階層
的に決定することにより、グラフ図形の配置を行うグラ
フ図形配置方法。
A plurality of nodes in a graph graphic arrangement unit;
Between the nodes and nodes that have a connection relationship among these nodes.
A graph figure composed of arcs defined as
From the graph data storage unit
Extract the figure and connect it to the nodes at both ends of the arc
A function defined as an increasing function for each number of arcs
Node calculated from the target value calculation formula for setting the distance between nodes
Non-hierarchical arrangement of each node based on target distance setting
A graph figure arranging method for arranging a graph figure by arbitrarily determining .
【請求項2】 複数のアークを介して接続される2つの
ノード間の距離の設定目標値を、該ノード間のパスを構
成するアークの両端のノード間の距離の設定目標値
和とすることを特徴とする請求項1記載のグラフ図形配
置法。
2. A set target value of a distance between two nodes connected via a plurality of arcs is calculated by summing a set target value of a distance between nodes at both ends of each arc constituting a path between the nodes. 2. The method of arranging graph figures according to claim 1, wherein:
【請求項3】 グラフ図形配置部において、ノード間の
距離の設定目標値、対応する実際のノード間距離との
差の増加関数のすべてのノードについての和を評価関
数として定義し、この評価関数の値が平面配置上で最も
小さくなるようにノード配置の変更を逐次的に行うこと
を特徴とする請求項1または2記載のグラフ図形配置
法。
3. A graph graphic arranging unit, comprising:
Distance and setting the target value, the increasing function of the difference between the distance between the corresponding actual node, the sum of all the nodes is defined as an evaluation function, so that the value of the evaluation function becomes minimum in the plane disposed 3. The graph graphic arrangement method according to claim 1, wherein the node arrangement is sequentially changed.
【請求項4】 グラフ図形配置部において、ノード間の
距離の設定目標値、対応する実際のノード間距離との
差に基づいてノード間に働く力を定義し、すべてのノー
ド間に働く力が平面配置上でバランスするようにノード
配置の変更を逐次的に行うことを特徴とする請求項1ま
たは2記載のグラフ図形配置法。
4. A graph graphic arranging unit, comprising:
Define the forces acting between the nodes based on the difference between the set target value of the distance and the corresponding actual distance between the nodes, and change the node arrangement so that the forces acting between all the nodes are balanced on the plane arrangement. 3. The method according to claim 1, wherein the method is performed sequentially.
【請求項5】 評価関数値に対するノード間の距離の設
定目標値、対応する実際のノード間距離との差の寄与
率をノード間の距離の設定目標値またはノード間のグラ
フ理論上の距離の減少関数としたことを特徴とする請求
項3記載のグラフ図形配置法。
5. Setting of a distance between nodes for an evaluation function value
4. The method according to claim 3, wherein the contribution ratio of the difference between the fixed target value and the corresponding actual inter-node distance is set as a set target value of the distance between the nodes or a decreasing function of the graph theoretical distance between the nodes. Graph figure arrangement method.
【請求項6】 ノード間の力に対するノード間の距離の
設定目標値、対応する実際のノード間距離との差の寄
与率をノード間の距離の設定目標値またはノード間のグ
ラフ理論上の距離の減少関数としたことを特徴とする請
求項4記載のグラフ図形配置法。
6. The distance between nodes to the force between nodes
5. The method according to claim 4 , wherein a contribution ratio of a difference between the set target value and a corresponding actual inter-node distance is set as a set target value of the distance between the nodes or a decreasing function of a graph theoretical distance between the nodes. Graph figure arrangement method.
【請求項7】 グラフ図形配置部において、グラフデー
タ記憶部より、取り出したグラフ図形から、あらかじめ
多重枝および自己閉路を検出して取り除き、グラフ図形
の配置を終了した後に上記多重枝および自己閉路を復元
することを特徴とする請求項1ないし6の何れかに記載
のグラフ図形配置法。
7. A graph data arranging unit, comprising:
7. A multi-branch and a self-cycle are detected and removed in advance from the extracted graph graphic from the data storage unit, and the multi-branch and the self-cycle are restored after the arrangement of the graph graphic is completed. The graph graphic arrangement method according to any one of the above.
【請求項8】 複数のノードと、これらのノード中、接
続関係のあるノード間を結ぶ線として定義したアークと
で構成されるグラフ図形をデータとして記憶保持したグ
ラフデータ記憶部と、このグラフデータ記憶部からグラ
フ図形を取り出し、アークの両端のノードに接続される
各々のアーク数についての増加関数として定義されたノ
ード間の距離の設定目標値算定式から算定されたノード
間距離の設定目標値に基づき、各ノードの配置を非階層
的に決定することにより、グラフ図形の配置を行うグラ
フ図形配置部を備えたグラフ図形配置装置。
8. A plurality of nodes and a connection among these nodes
An arc defined as a line connecting nodes that are connected
A graph in which a graph figure composed of
The rough data storage unit and the graph data storage unit
Extract the figure and connect it to the nodes at both ends of the arc
A function defined as an increasing function for each number of arcs
Node calculated from the target value calculation formula for setting the distance between nodes
Non-hierarchical arrangement of each node based on target distance setting
To determine the graph shape
A graph graphic arrangement device having a graphic arrangement unit.
【請求項9】 複数のアークを介して接続される2つの
ノード間の距離の設定目標値を、該ノード間のパスを構
成するアークの両端のノード間の距離の設定目標値
和とすることを特徴とする請求項8記載のグラフ図形配
置装置。
9. A set target value of a distance between two nodes connected via a plurality of arcs is calculated by summing a set target value of a distance between nodes at both ends of each arc forming a path between the nodes. 9. The apparatus for arranging graph graphics according to claim 8, wherein:
【請求項10】 グラフ図形配置部において、ノード間
距離の設定目標値、対応する実際のノード間距離と
の差の増加関数の、すべてのノードについての和を評価
関数として定義し、この評価関数の値が平面配置上で最
も小さくなるようにノード配置の変更を逐次的に行うこ
とを特徴とする請求項8または9記載のグラフ図形配置
装置。
10. A graph figure placement section, defines a set target value of the distance between nodes, the increasing function of the difference between the between the corresponding actual node distance, the sum of all the nodes as the evaluation function, the 10. The apparatus according to claim 8, wherein the node arrangement is sequentially changed so that the value of the evaluation function is minimized on the plane arrangement.
【請求項11】 グラフ図形配置部において、ノード間
距離の設定目標値、対応する実際のノード間距離と
の差に基づいてノード間に働く力を定義し、すべてのノ
ード間に働く力が平面配置上でバランスするようにノー
ド配置の変更を逐次的に行うことを特徴とする請求項8
または9記載のグラフ図形配置装置。
11. A graph graphic arranging unit which defines a force acting between nodes based on a difference between a set target value of a distance between nodes and a corresponding actual distance between nodes, and a force acting between all nodes. 9. The method according to claim 8, wherein the node arrangement is sequentially changed so that the nodes are balanced on a plane arrangement.
Or the graph graphic arrangement device according to 9.
JP29131195A 1995-11-09 1995-11-09 Graph figure arrangement method and apparatus Expired - Fee Related JP3346130B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29131195A JP3346130B2 (en) 1995-11-09 1995-11-09 Graph figure arrangement method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29131195A JP3346130B2 (en) 1995-11-09 1995-11-09 Graph figure arrangement method and apparatus

Publications (2)

Publication Number Publication Date
JPH09134440A JPH09134440A (en) 1997-05-20
JP3346130B2 true JP3346130B2 (en) 2002-11-18

Family

ID=17767263

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29131195A Expired - Fee Related JP3346130B2 (en) 1995-11-09 1995-11-09 Graph figure arrangement method and apparatus

Country Status (1)

Country Link
JP (1) JP3346130B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3484096B2 (en) 1999-03-03 2004-01-06 インターナショナル・ビジネス・マシーンズ・コーポレーション Logical zoom method in logical zoom device for directed graph
JP3790679B2 (en) * 2001-04-06 2006-06-28 インターナショナル・ビジネス・マシーンズ・コーポレーション Graph data visualization device, graphics creation method, program, and storage medium
JP4566928B2 (en) * 2006-03-01 2010-10-20 三菱電機株式会社 Graph graphic arrangement method, program and apparatus
JP5020610B2 (en) * 2006-11-24 2012-09-05 株式会社日立ソリューションズ Social network analysis processor
JP5309780B2 (en) * 2008-08-13 2013-10-09 富士ゼロックス株式会社 Display information generating apparatus and program
JP6665579B2 (en) * 2016-02-25 2020-03-13 富士通株式会社 Drawing method, drawing apparatus, and drawing program

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FRUCHTERMAN T,Graph Drawing by Force−directed Placement,SOFTWARE−PRACTICE AND EXPERIENCE,米国,John Wiley & Sons,Ltd,Vol.21,No.11,1129−1164
Peter Eades,Drawing Free Trees,Research Report International Institute for Advanced Study of Social Information Sciene,日本,Fujitsu Laboratories LTD,No.91−17E
佐野達郎,グラフの自動描画アルゴリズムについて,電子情報通信学会技術研究報告,日本,電子情報通信学会,1995年11月10日,Vol.95,No.349,1−6

Also Published As

Publication number Publication date
JPH09134440A (en) 1997-05-20

Similar Documents

Publication Publication Date Title
EP0977154B1 (en) Presenting node-link structures with modification
US5555354A (en) Method and apparatus for navigation within three-dimensional information landscape
US5528735A (en) Method and apparatus for displaying data within a three-dimensional information landscape
US5463722A (en) Automatic alignment of objects in two-dimensional and three-dimensional display space using an alignment field gradient
JP4864181B2 (en) Node display device
US5608850A (en) Transporting a display object coupled to a viewpoint within or between navigable workspaces
US6774899B1 (en) Drawing graphs using user selectable visual oragnization features and/or other user controlled constraints
Noik A space of presentation emphasis techniques for visualizing graphs
EP1510938B1 (en) A method of providing a visualisation graph on a computer and a computer for providing a visualisation graph
Storey et al. Graph layout adjustment strategies
Jones et al. Map generalization in the web age
Young Three dimensional information visualisation
JPH05266212A (en) Method for generating object
Qu et al. Focus+ context route zooming and information overlay in 3D urban environments
Shen et al. Product information visualization and augmentation in collaborative design
JP3346130B2 (en) Graph figure arrangement method and apparatus
Tu et al. Balloon focus: a seamless multi-focus+ context method for treemaps
US6856312B1 (en) Method for generating three-dimensional form data and apparatus therefor
Noser et al. Dynamic 3D visualization of database-defined tree structures on the WWW by using rewriting systems
Zhang et al. On cutting and dissection of virtual deformable objects
JP3423894B2 (en) Road shape figure deformation method, apparatus, and storage medium recording the method
Kalay Worldview: An integrated geometric-modeling/drafting system
JPH076076A (en) Hypermedia system
MXPA04008092A (en) Method and system for applying constraints to chains of curves.
JP3251662B2 (en) Data display processing system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090906

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100906

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110906

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees