JP2007233728A - Graph figure arrangement method, program, and device - Google Patents

Graph figure arrangement method, program, and device Download PDF

Info

Publication number
JP2007233728A
JP2007233728A JP2006055134A JP2006055134A JP2007233728A JP 2007233728 A JP2007233728 A JP 2007233728A JP 2006055134 A JP2006055134 A JP 2006055134A JP 2006055134 A JP2006055134 A JP 2006055134A JP 2007233728 A JP2007233728 A JP 2007233728A
Authority
JP
Japan
Prior art keywords
graph
nodes
graphic
node
distance
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.)
Granted
Application number
JP2006055134A
Other languages
Japanese (ja)
Other versions
JP4566928B2 (en
Inventor
Tatsuro Sano
達郎 佐野
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 JP2006055134A priority Critical patent/JP4566928B2/en
Publication of JP2007233728A publication Critical patent/JP2007233728A/en
Application granted granted Critical
Publication of JP4566928B2 publication Critical patent/JP4566928B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a graph figure arrangement method capable of preventing the crossing of arcs and the overlapping of nodes and drawing an easy-to-see graph figure. <P>SOLUTION: The graph figure arrangement section 4 takes out a graph figure from a graph data storage section 7 for storing a graph figure, comprising a plurality of nodes, and an arc defined as a line for connecting the nodes in a connection relationship in the nodes, as data, and determines the arrangement of each node non-hierarchically for arranging a graph figure, based on the setting target value of the distance between nodes calculated from a calculation expression correlated with the size of a node connected to each node at both the ends of the arc. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、グラフ図形の配置方法に係り、特に非階層的にグラフ図形を配置するグラフ図形配置方法、この方法に従ってグラフ図形を配置するグラフ図形配置部としてコンピュータを機能させるプログラム及びその装置に関するものである。   The present invention relates to an arrangement method of graph figures, and more particularly to a graph figure arrangement method for arranging graph figures in a non-hierarchical manner, a program for causing a computer to function as a graph figure arrangement unit for arranging graph figures according to this method, and an apparatus therefor It is.

階層性を顕示するグラフ図形配置法は多く研究されており、様々なアルゴリズムが提案されている。これに対し、非階層的なグラフ図形の配置に関する研究は、あまり行われておらず、グラフ図形に含まれるノードの大きさを考慮せず、グラフ図形のノードを点として自動配置するアルゴリズムが提案されているにすぎない。例えば、非特許文献1に開示されるアルゴリズムでは、グラフ図形に含まれるノードを点として考え、ノード間に単純なバネの力を定義してノード間の理想的な距離をグラフ理論上の距離、即ちノード間の最短経路を構成するアークの数としてグラフ図形を自動描画する。   A lot of researches have been made on graph graphic layout methods to reveal the hierarchy, and various algorithms have been proposed. On the other hand, there has not been much research on the placement of non-hierarchical graph figures, and an algorithm that automatically places the nodes of the graph figure as points without considering the size of the nodes included in the graph figure is proposed. It has only been done. For example, in the algorithm disclosed in Non-Patent Document 1, a node included in a graph figure is considered as a point, a simple spring force is defined between the nodes, and an ideal distance between the nodes is determined as a graph theoretical distance, That is, a graph figure is automatically drawn as the number of arcs that form the shortest path between nodes.

なお、特許文献1では、アークの両端のノードに接続される各々のアーク数についての増加関数として定義されたノード間の距離の設定目標値算定式から、ノード間距離の設定目標値を算出し、この設定目標値に基づいて各ノードの配置を非階層的に決定することにより、ノードの大きさが均一なグラフ図形をバランス良く配置することができる。   In Patent Document 1, a set target value for the distance between nodes is calculated from a set target value calculation formula for the distance between nodes defined as an increasing function for the number of arcs connected to the nodes at both ends of the arc. Then, by determining the arrangement of the nodes in a non-hierarchical manner based on the set target value, it is possible to arrange graph figures with uniform node sizes in a balanced manner.

T. KAMADA and S. KAWAI, “An algorithm for drawing general undirected graphs”, Information Processing Letters, Vol. 31, NO.1(1989), pp. 7-15.T. KAMADA and S. KAWAI, “An algorithm for drawing general undirected graphs”, Information Processing Letters, Vol. 31, NO.1 (1989), pp. 7-15. 特許第3346130号公報Japanese Patent No. 3346130

従来の非階層的にグラフ図形を配置する方法では、ある程度の大きさを持ったノードを含むグラフ図形を配置するにあたり、ノードの大きさが考慮されない。このため、グラフ図形を配置した際、ノード同士が重なって配置されてグラフ図形が見難くなるという課題があった。   In the conventional non-hierarchical method of arranging graph figures, the size of nodes is not taken into consideration when arranging graph figures including nodes having a certain size. For this reason, when the graph figure is arranged, there is a problem that the nodes are overlapped to make the graph figure difficult to see.

また、特許文献1は、ノードの大きさが均一なグラフ図形をバランス良く配置することができるが、ノードの大きさにばらつきがあるグラフ図形ではバランス良く描画することができない。   In Japanese Patent Laid-Open No. 2004-228688, graph figures with uniform node sizes can be arranged with good balance, but graph figures with varying node sizes cannot be drawn with good balance.

この発明は、上記のような課題を解決するためになされたもので、グラフ図形構造の特徴やノードの大きさに応じてグラフ図形を配置することにより、アークの交差やノードの重なりを防ぐことができ、見やすいグラフ図形描画を実現できるグラフ図形配置方法、この方法に従ってグラフ図形を配置するグラフ図形配置部としてコンピュータを機能させるプログラム及びその装置を得ることを目的とする。   The present invention has been made to solve the above-described problems, and by arranging the graph graphic according to the characteristics of the graph graphic structure and the size of the node, it is possible to prevent arc crossing and node overlap. It is an object of the present invention to provide a graph graphic arrangement method capable of realizing easy-to-view graph graphic drawing, a program for causing a computer to function as a graph graphic arrangement unit for arranging graphic figures according to this method, and an apparatus therefor.

また、この発明は、グラフ図形構造の特徴やノードの大きさに応じてグラフ図形を配置すると共に、対話的なグラフ図形の編集が可能なグラフ図形配置方法、この方法に従ってグラフ図形を配置するグラフ図形配置部としてコンピュータを機能させるプログラム及びその装置を得ることを目的とする。   The present invention also provides a graph graphic arrangement method that arranges a graph graphic according to the characteristics of the graph graphic structure and the size of the node and can interactively edit the graph graphic, and a graph that arranges the graphic graphic according to this method. It is an object of the present invention to obtain a program and a device for causing a computer to function as a graphic layout unit.

この発明に係るグラフ図形配置方法は、グラフ図形配置部が、複数のノードと、これらのノード中、接続関係のあるノード間を結ぶ線として定義したアークとで構成されるグラフ図形をデータとして記憶するグラフデータ記憶部からグラフ図形を取り出し、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式から算定したノード間の距離の設定目標値に基づいて、各ノードの配置を非階層的に決定することにより、グラフ図形の配置を行うものである。   In the graph graphic arrangement method according to the present invention, the graph graphic arrangement unit stores, as data, a graph graphic composed of a plurality of nodes and arcs defined as lines connecting nodes connected to each other among these nodes. The graph figure is taken out from the graph data storage unit, and the placement of each node is determined based on the set target value of the distance between the nodes calculated from the calculation formula correlated with the size of the node connected to each node at both ends of the arc. The graphic figure is arranged by non-hierarchical determination.

この発明によれば、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式から算定したノード間の距離の設定目標値に基づいて、各ノードの配置を非階層的に決定することから、アークの交差やノードの重なりが少なく見やすいグラフ図形の描画を実現できるという効果がある。   According to the present invention, the arrangement of each node is determined non-hierarchically based on the set target value of the distance between nodes calculated from a calculation formula correlated with the size of the node connected to each node at both ends of the arc. Therefore, there is an effect that it is possible to realize easy-to-see graph graphics with few arc crossings and node overlaps.

実施の形態1.
図1は、この発明の実施の形態1によるグラフ図形配置装置の構成を示すブロック図である。本実施の形態1によるグラフ図形配置装置は、入力装置1、処理装置2及び出力装置8を備える。また、処理装置2は、管理部3、グラフ図形配置部4、グラフ図形編集部5、グラフ図形描画部6及びグラフデータ記憶部7を有する。なお、入力装置1側の機器と出力装置8側の機器とは、一つのCRT、LCDやキーボード、ハードディスク等を共有してもよく、入力データとグラフ図形の配置とをマルチウインドウ形式で表示することも自由である。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of a graph figure arrangement apparatus according to Embodiment 1 of the present invention. The graph graphic arrangement device according to the first embodiment includes an input device 1, a processing device 2, and an output device 8. Further, the processing device 2 includes a management unit 3, a graph graphic arrangement unit 4, a graph graphic editing unit 5, a graph graphic drawing unit 6, and a graph data storage unit 7. The device on the input device 1 side and the device on the output device 8 side may share a single CRT, LCD, keyboard, hard disk, etc., and display the input data and the arrangement of graph figures in a multi-window format. It is also free.

管理部3は、処理装置2全体の処理を管理する。即ち、管理部3は、入力装置1からの編集要求に従いグラフ図形編集部5へ処理を移し、グラフ図形編集部5によりグラフ図形の編集を行わせる。グラフ図形編集部5の処理が終了すると、管理部3は、その結果をグラフデータ記憶部7へ記憶させ、処理をグラフ図形描画部6へ移す。グラフ図形描画部6では、グラフデータ記憶部7のデータに従い出力装置8へグラフ図形を描画する。   The management unit 3 manages the processing of the entire processing device 2. That is, the management unit 3 moves the process to the graph graphic editing unit 5 in accordance with the editing request from the input device 1 and causes the graph graphic editing unit 5 to edit the graph graphic. When the processing of the graph graphic editing unit 5 ends, the management unit 3 stores the result in the graph data storage unit 7 and moves the processing to the graph graphic drawing unit 6. The graph graphic drawing unit 6 draws a graph graphic on the output device 8 according to the data in the graph data storage unit 7.

また、管理部3は、入力装置1からのグラフ図形自動配置要求に従い、グラフ図形配置部4に処理を移し、グラフ図形配置部4によりグラフ図形の配置を決定させる。管理部3は、グラフ図形配置部4による配置結果をグラフデータ記憶部7に記憶させ、この後に処理をグラフ図形描画部6へ移す。グラフ図形描画部6では、グラフデータ記憶部7のデータに従い、出力装置8へグラフ図形を描画する。   Further, the management unit 3 moves the processing to the graph graphic placement unit 4 in accordance with the graph graphic automatic placement request from the input device 1 and causes the graph graphic placement unit 4 to determine the placement of the graph graphic. The management unit 3 causes the graph data storage unit 7 to store the arrangement result by the graph graphic arrangement unit 4, and then moves the processing to the graph graphic drawing unit 6. The graph figure drawing unit 6 draws a graph figure on the output device 8 according to the data in the graph data storage unit 7.

グラフ図形配置部4は、管理部3の命令に従い、グラフデータ記憶部7のデータを基にグラフ図形の配置を自動的に見やすく再配置する手段を備えている。本実施の形態1では、グラフ図形の配置法として、予め決められたノード間の理想距離(設定目標値)に対して、できるだけ実際のノード間の距離が近くなるようにグラフ図形を配置する。   The graph graphic arrangement unit 4 includes means for automatically rearranging the arrangement of the graph graphic based on the data in the graph data storage unit 7 according to the instruction of the management unit 3. In the first embodiment, the graph graphic is arranged so that the actual distance between the nodes is as close as possible to a predetermined ideal distance (set target value) between the nodes as a graph graphic arrangement method.

具体的には、グラフ図形の各連結成分に対し、平面上に配置するときのノード間の理想距離を決め、ノード間の理想距離と実際の距離との誤差の2乗に適当な関数値を掛けたものの全ノードの合計ができるだけ小さくなるような状態にノードを少しずつ動かしていくという配置法を用いる。但し、前処理としてグラフ中の多重枝、自己閉路は取り除き、後処理として前処理で取り除いた多重枝、自己閉路を復元してグラフ図形を描画する。   Specifically, for each connected component of the graph figure, an ideal distance between nodes when arranged on a plane is determined, and an appropriate function value is set to the square of the error between the ideal distance between nodes and the actual distance. An arrangement method is used in which the nodes are moved little by little so that the sum of all multiplied nodes becomes as small as possible. However, the multiple branches and self-cycles in the graph are removed as preprocessing, and the multiple branches and self-cycles removed in the preprocessing are restored as post-processing to draw a graph figure.

なお、本発明では、ノード間の理想距離を算出するにあたり、後述するように、ノードの大きさに関するパラメータを含む算定式を用いる。これにより、ある程度の大きさを有するノードを含むグラフ図形を配置する場合においても、ノード同士の重なりが少なくなるように配置することができる。   In the present invention, when calculating the ideal distance between nodes, as will be described later, a calculation formula including a parameter related to the size of the node is used. Thereby, even when a graph figure including nodes having a certain size is arranged, the nodes can be arranged so that there is less overlap between the nodes.

グラフ図形編集部5は、管理部3の命令に従い、グラフ図形の編集を行う処理手段を備えている。編集内容としては、ノードの追加、削除及び移動、アークの追加及び削除等があり、グラフ図形の配置を適当なノードあるいは適当な座標を中心に拡大又は縮小することもできる。   The graph graphic editing unit 5 includes processing means for editing the graph graphic in accordance with instructions from the management unit 3. Editing contents include addition, deletion and movement of nodes, addition and deletion of arcs, and the like, and the arrangement of graph figures can be enlarged or reduced around an appropriate node or an appropriate coordinate.

また、グラフ図形描画部6は、管理部3の命令に従い、グラフデータ記憶部7のデータを基にグラフ図形を出力装置8に描画する手段を備える。グラフデータ記憶部7は、グラフの構造と共に各要素の大きさや位置等のデータを記憶する手段を備える。例えば、処理装置2に搭載されたハードディスクや記憶媒体を再生するドライブ装置等により具現化される。   In addition, the graph graphic drawing unit 6 includes means for drawing a graph graphic on the output device 8 based on the data in the graph data storage unit 7 in accordance with the instruction of the management unit 3. The graph data storage unit 7 includes means for storing data such as the size and position of each element together with the structure of the graph. For example, it is embodied by a hard disk mounted on the processing device 2 or a drive device for reproducing a storage medium.

なお、管理部3、グラフ図形配置部4、グラフ図形編集部5、グラフ図形描画部6及びグラフデータ記憶部7は、例えば、本発明の趣旨に従う処理プログラムを、処理装置2を構成するコンピュータの演算処理装置に実行させてその動作を制御することにより、ソフトウエアとハードウエアとが協働した具体的な手段として実現することができる。   The management unit 3, the graph graphic arrangement unit 4, the graph graphic editing unit 5, the graph graphic drawing unit 6, and the graph data storage unit 7, for example, execute a processing program according to the gist of the present invention on a computer constituting the processing device 2. By executing the arithmetic processing unit and controlling its operation, it can be realized as a specific means in which software and hardware cooperate.

次に実施の形態1によるグラフ図形配置処理について説明する。
上述したように、本実施の形態1では、グラフの各連結成分に対し、平面上に配置するときのノード間の理想距離を決め、ノード間の理想距離と実際の距離との差の2乗に適当な関数値を掛けたもの(ノード間の距離の設定目標値と、対応する実際のノード間距離との相関を表す関数)の、全ノードの合計ができるだけ小さくなるような状態にノードを少しずつ動かしていく。この際、前処理としてグラフ図形における多重枝、自己閉路を取り除き、後処理として前処理で取り除いた多重枝、自己閉路を復元してグラフ図形を描画する。
Next, the graph figure arrangement process according to the first embodiment will be described.
As described above, in the first embodiment, for each connected component of the graph, the ideal distance between nodes when arranged on a plane is determined, and the square of the difference between the ideal distance between nodes and the actual distance is determined. Multiplied by an appropriate function value (a function representing the correlation between the target distance setting value between nodes and the corresponding actual distance between nodes) so that the total of all nodes is as small as possible. Move it little by little. At this time, the multiple branches and self-cycles in the graph figure are removed as pre-processing, and the multiple branches and self-cycles removed in the pre-processing are restored as post-processing to draw the graph figure.

図2は、実施の形態1のグラフ図形処理装置によるグラフ図形中の多重枝、自己閉路を取り除く処理の流れを示すフローチャートであり、この図及び図1に沿って説明する。
先ず、グラフ図形配置部4は、管理部3による制御の下、グラフデータ記憶部7からグラフ図形のデータを読み出し、グラフ図形から多重枝の組、即ち同じ2つのノードを両端とするアークの組を探索する(ステップST1)。この探索の方法としては、単純に2つの異なるアークを選ぶ全ての組についてその両端のノードを比較する方法が考えられる。
FIG. 2 is a flowchart showing a flow of processing for removing multiple branches and self-cycles in a graph figure by the graph figure processing apparatus according to the first embodiment, which will be described with reference to FIG. 1 and FIG.
First, the graph graphic arrangement unit 4 reads the data of the graph graphic from the graph data storage unit 7 under the control of the management unit 3 and sets multiple branches from the graph graphic, that is, a set of arcs having the same two nodes as both ends. Is searched (step ST1). As a method of this search, a method of comparing the nodes at both ends of all the pairs that simply select two different arcs can be considered.

グラフ図形配置部4は、ステップST1での探索を開始すると、同じ2つのノードを両端とするアークの組の有無を判定する処理に移行する(ステップST2)。このとき、同じ2つのノードを両端とするアークの組が見つかると、グラフ図形配置部4は、当該アークの組のうち、どちらかのアークを取り除く処理を行う(ステップST3)。   When the graph graphic placement unit 4 starts the search in step ST1, the graph graphic placement unit 4 shifts to a process of determining the presence or absence of an arc pair having both ends of the same two nodes (step ST2). At this time, when a set of arcs having the same two nodes at both ends is found, the graph graphic placement unit 4 performs a process of removing either arc from the set of arcs (step ST3).

一方、同じ2つのノードを両端とするアークの組が見つからなければ、グラフ図形配置部4は、当該グラフ図形から、自己閉路を作るアーク、即ち両端が同じ1つのノードであるアークを探索する(ステップST4)。なお、この探索の方法としては、全てのアークに対してその両端のノードを比較することが考えられる。   On the other hand, if a pair of arcs having the same two nodes at both ends is not found, the graph graphic placement unit 4 searches the graph graphic for an arc that forms a self-closed loop, that is, an arc that is one node with the same both ends ( Step ST4). As a search method, it is conceivable to compare nodes at both ends of all arcs.

グラフ図形配置部4は、ステップST4での探索を開始すると、両端が同じ1つのノードであるアークの有無を判定する処理に移行する(ステップST5)。このとき、両端が同じ1つのノードであるアークが見つかると、グラフ図形配置部4は、このアークを取り除く処理を実行する(ステップST6)。また、見つからなかった場合は、処理を終了する。   The graph figure arrangement | positioning part 4 will transfer to the process which determines the presence or absence of the arc which is one node where both ends are the same, if the search by step ST4 is started (step ST5). At this time, when an arc that is one node having the same both ends is found, the graph graphic arrangement unit 4 executes a process of removing the arc (step ST6). Also, if not found, the process is terminated.

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

次にノード間の理想距離の算出処理について説明する。
先ず、グラフ図形配置部4には、アークaijの両端のノードi,j間のグラフ図形上の理想的な距離eijが、ノードi及びノードjの状態によって下記式(1)のように定義される。但し、下記式(1)において、αはノード間の長さの基準となるスケーリング定数である。また、Niはノードiに隣接するノードの集合、Njはノードjに隣接するノードの集合である。Rmはノードmの半径であり、m⊂Ni又はm⊂Njである。右辺の第1項を2で割っているのは、ノードiとノードjに関して平均をとるという意味合いである。

Figure 2007233728
Next, a process for calculating an ideal distance between nodes will be described.
First, an ideal distance e ij on the graph figure between the nodes i and j at both ends of the arc a ij is set in the graph figure arrangement unit 4 as shown in the following formula (1) depending on the state of the node i and the node j. Defined. However, in the following formula (1), α is a scaling constant serving as a reference for the length between nodes. N i is a set of nodes adjacent to the node i, and N j is a set of nodes adjacent to the node j. R m is the radius of the node m and is m⊂N i or m⊂N j . Dividing the first term on the right side by 2 means that the average is taken for node i and node j.
Figure 2007233728

上記式(1)により、アークaijの両端のノードi,j間のグラフ図形上の理想的な距離は、ノードi、ノードjに接続するノードの半径の総和が大きいほど長くなる。つまり、上記式(1)によってノードi,j間の理想的な距離eijは、ノードi,jに接続するノードの半径の総和の増加関数になっている。 From the above equation (1), the ideal distance on the graph between the nodes i and j at both ends of the arc a ij becomes longer as the sum of the radii of the nodes connected to the nodes i and j increases. That is, the ideal distance e ij between the nodes i and j is an increasing function of the sum of the radii of the nodes connected to the nodes i and j according to the above equation (1).

なお、本発明におけるノードi,j間の理想的な距離(設定目標値)の定義は、上記式(1)で示される関係に限定されるものではない。例えば、1つのアークで結ばれるノード間の理想的な距離を、アークの両端の各ノードに隣接するノードの半径と相関がある数値(例えば、ノードの半径の総和のように当該ノードの大きさを規定するもの)に関して増加の傾向にある関数で定義する。この定義に合致する関数の算定式であれば、目的に応じて自由に設定することができる。   In addition, the definition of the ideal distance (setting target value) between the nodes i and j in the present invention is not limited to the relationship represented by the above formula (1). For example, the ideal distance between nodes connected by one arc is a numerical value that correlates with the radius of a node adjacent to each node at both ends of the arc (for example, the size of the node such as the sum of the node radii). Defined by a function that tends to increase. Any calculation formula for a function that meets this definition can be freely set according to the purpose.

また、アークaijの理想的な距離を上記式(1)で定義されるeijの値とし、1つのアークで結ばれない、隣接しないノードm,n間の理想距離については、ノードm,n間のパスを構成するアークの理想距離の合計の長さとする。これにより、グラフ図形の配置において、遠方に配置すべきノードを不合理に接近させることを防ぐことができる。 The ideal distance of the arc a ij is the value of e ij defined by the above equation (1), and the ideal distance between the non-adjacent nodes m and n that are not connected by one arc is the node m, The total length of the ideal distances of arcs constituting the path between n is assumed. Thereby, in arrangement | positioning of a graph figure, it can prevent making the node which should be arrange | positioned far away approach unreasonably.

本実施の形態1によるグラフ配置アルゴリズムでは、アークの長さができるだけ理想的なアークの長さになるようにグラフ図形を配置するため、アークの長さをその両端のノードの状態によって決定することができる。また、アークの長さの定義が上記式(1)の場合は、大きな半径を持ったノード、及び、次数の高いノードを含むグラフ図形も見易く配置できることになる。   In the graph arrangement algorithm according to the first embodiment, the graph figure is arranged so that the arc length is as ideal as possible, so that the arc length is determined by the state of the nodes at both ends thereof. Can do. When the definition of the arc length is the above formula (1), a graph figure including a node having a large radius and a node having a high degree can be arranged in an easily viewable manner.

さらに、グラフ図形配置部4には、評価関数として、ノード間の理想距離と実際のノード間の距離との差の2乗(ノード間の距離の理想距離と対応する実際のノード間の距離との相関を表す関数)に適当な関数値を掛けた関数の、配置対象のグラフ図形の全ノードについての総和Eが、下記式(2)のように定義される。
但し、下記式(2)において、Nはグラフ図形の全ノードの集合であり、i,jはNの要素(但し、j≠i)である。また、kijはノードi,j間のバネ定数であり、評価関数Eの値に対するノードi,j間の距離の理想距離と実際のノードi,j間の距離との相関の寄与率に相当する。また、eijはノードiとノードjと間のグラフ図形上の理想距離(設定目標値)、dijはノードi,j間の距離である。

Figure 2007233728
Further, the graph graphic arrangement unit 4 uses, as an evaluation function, the square of the difference between the ideal distance between nodes and the actual distance between nodes (the ideal distance between the nodes and the corresponding distance between the actual nodes). A sum E for all nodes of the graph figure to be arranged is defined as the following equation (2).
However, in the following formula (2), N is a set of all nodes of the graph figure, and i and j are N elements (where j ≠ i). K ij is a spring constant between the nodes i and j, and corresponds to the contribution ratio of the correlation between the ideal distance between the nodes i and j and the actual distance between the nodes i and j with respect to the value of the evaluation function E. To do. E ij is an ideal distance (set target value) on the graph figure between the node i and the node j, and d ij is a distance between the nodes i and j.
Figure 2007233728

上述したように、本実施の形態1によるグラフ図形の非階層的自動配置法では、各ノード間の配置平面上の理想距離を、目的に応じた算定式(例えば、上記式(1))によって算出し、上記式(2)を例とするような評価関数Eの値がある程度小さくなるようにノードを少しずつ動かし、グラフ図形の配置を求める。上記式(2)で表される評価関数Eは、本実施の形態によるグラフ図形配置法において、結果的に各ノード間の相互作用の発生を規定している。つまり、このEをできるだけ小さくすれば、各ノード間での相互作用が小さい、例えばノード同士の重なりがない配置を実現することができる。   As described above, in the non-hierarchical automatic placement method of graph figures according to the first embodiment, the ideal distance on the placement plane between the nodes is calculated by a calculation formula (for example, the above formula (1)) according to the purpose. Then, the nodes are moved little by little so that the value of the evaluation function E, which takes the above formula (2) as an example, becomes small to some extent, and the layout of the graph figure is obtained. The evaluation function E represented by the above formula (2) regulates the occurrence of interaction between the nodes as a result in the graph figure arrangement method according to the present embodiment. That is, if this E is made as small as possible, it is possible to realize an arrangement in which the interaction between the nodes is small, for example, there is no overlap between the nodes.

評価関数Eをできるだけ小さくするノード配置を求める具体的な方法には各種の方法がある。例えば、最適化問題の解あるいは近似解を求める方法としてよく知られているシミュレーティッドアニーリング法を用いる場合について説明する。
グラフ図形配置部4において、上記式(2)のEをノードiのみに対して計算した下記式(3)を定義する。

Figure 2007233728
There are various methods for obtaining a node arrangement that makes the evaluation function E as small as possible. For example, a case will be described in which a simulated annealing method, which is well known as a method for obtaining an optimization problem solution or approximate solution, is used.
In the graph figure arrangement unit 4, the following formula (3) in which E in the formula (2) is calculated only for the node i is defined.
Figure 2007233728

グラフ図形配置部4は、グラフデータ記憶部7から読み出したグラフ図形データの配置にあたり、グラフ図形における全てのノードについて上記式(3)によるEiを計算し、計算結果のうちEiの値が最も大きかったノードiについてノードiの位置を少しだけ動かして、上記式(2)を目的関数としたシミュレーティッドアニーリング法の近似解を求める操作を1回適用する。この後、グラフ図形配置部4は、全てのノードについてEiを再度計算し、計算結果のうちEiが最も大きかったノードについて前述の操作と同様に近似解を求めるという操作を繰り返してEができるだけ小さくなるようなノードの配置を求める。 Graph figure placement unit 4, when the arrangement of the graph figure data read from the graph data storage unit 7, a E i according to the aforementioned formula (3) was calculated for all nodes in the graph figure, the value of E i of the calculation result For the largest node i, the position of the node i is slightly moved, and an operation for obtaining an approximate solution of the simulated annealing method using the above equation (2) as an objective function is applied once. Thereafter, the graph graphic arrangement unit 4 recalculates E i for all the nodes and repeats the operation of obtaining an approximate solution for the node having the largest E i among the calculation results in the same manner as described above. Find the arrangement of nodes that is as small as possible.

上記式(2)のkijとして適当な計算式を定義することにより、ノードi,j間の理想距離が離れる程にEに占める誤差(理想距離eijと実際の距離dijとの相関を表す関数値)の相対的な大きさを小さくすることができ、また、ノード同士が接近しすぎて重なることを少なくすることができる。これにより、グラフ図形全体のバランスに配慮しつつ、局所的なバランスのとれたグラフ図形の配置を行うことができる。本実施の形態1によるグラフ図形配置部4では、kijが下記式(4)で定義される。下記式(4)は、評価関数値に対するノードi,j間の理想距離eijと実際のノードi,j間距離dijとの相関の寄与率に相当するkijが、実際のノードi,j間距離dijとノードi,j間の理想距離eijとに関して減少する減少関数で定義したものである。

Figure 2007233728
但し、K1,K2は適当な定数である。tijはノードi,jにおいてグラフ図形の構造を考慮して定義される値であり、ノードi,jが隣接する場合は下記式(5)によって計算される。ここで、niはノードiの次数(ノードiに隣接するアークの数)である。また、隣接しないノードi,j間については、tijとしてノードi,jを結ぶ最短パスを構成するアークの両端のノードm,nのtmnの合計の長さとする。
Figure 2007233728
By defining an appropriate calculation formula as k ij in the above formula (2), an error in E as the ideal distance between nodes i and j increases (the correlation between the ideal distance e ij and the actual distance d ij is obtained). (Function value to be expressed) can be reduced in relative size, and it can be reduced that nodes are too close to each other and overlap. As a result, it is possible to place a locally balanced graph figure while considering the balance of the entire graph figure. In the graph figure arrangement unit 4 according to the first embodiment, k ij is defined by the following formula (4). Formula (4), the node i for the evaluation function value, actual node i to the ideal distance e ij between j, k ij corresponding to the contribution of the correlation between the j distance d ij is the actual node i, This is defined by a decreasing function that decreases with respect to the distance j ij between j and the ideal distance e ij between the nodes i and j.
Figure 2007233728
However, K 1 and K 2 are appropriate constants. t ij is a value defined in consideration of the structure of the graph figure at the nodes i and j. When the nodes i and j are adjacent to each other, it is calculated by the following equation (5). Here, n i is the degree of node i (the number of arcs adjacent to node i). Further, between nodes i and j that are not adjacent, t ij is the total length of t mn of nodes m and n at both ends of the arc constituting the shortest path connecting nodes i and j.
Figure 2007233728

なお、本発明において、kijの定義は、上記式(4)の形だけに限るものではなく、隣接するノード間について、そのノードに接続するノードの大きさと相関がある関数、そのノードに接続するアークの数と相関がある関数、あるいはノード間の理想距離と相関がある関数のうちのいずれかであれば、目的に応じて自由に設定することができる。 In the present invention, the definition of k ij is not limited to the form of the above formula (4), but between adjacent nodes, a function having a correlation with the size of the node connected to the node, connected to the node Any one of a function correlated with the number of arcs to be performed or a function correlated with the ideal distance between nodes can be freely set according to the purpose.

上記式(5)により、最短パスに次数の高いノードを含むか、あるいはグラフ理論上の距離が離れる程にEに占める誤差の相対的な大きさを小さくすることができ、グラフ図形全体のバランスを配慮しつつ、局所的なバランスのとれたグラフ図形の配置を行うことができる。   According to the above equation (5), the relative magnitude of the error in E can be reduced as the distance of the graph theoretically increases as the shortest path includes a higher-order node, and the balance of the entire graph figure is reduced. In consideration of the above, it is possible to arrange the graph figures in a locally balanced manner.

次に、グラフ図形配置部4によるグラフ図形配置処理の詳細について説明する。
図3は、実施の形態1のグラフ図形配置部によるグラフ図形配置の流れを示すフローチャートであり、この図及び図1を用いて説明する。
先ず、グラフ図形配置部4は、グラフデータ記憶部7からグラフ図形のデータを取り出す(ステップST1a)。続いて、グラフ図形配置部4は、グラフ図形中の連結成分毎にステップST2a以降の処理を行う。ステップST2aにおいて、グラフ図形配置部4は、図2で示した流れでグラフ図形データから多重枝、自己閉路を探索して取り除く。
Next, details of the graph graphic arrangement processing by the graph graphic arrangement unit 4 will be described.
FIG. 3 is a flowchart showing the flow of graph graphic arrangement by the graph graphic arrangement unit of the first embodiment, and will be described with reference to this figure and FIG.
First, the graph graphic arrangement unit 4 takes out graph graphic data from the graph data storage unit 7 (step ST1a). Then, the graph figure arrangement | positioning part 4 performs the process after step ST2a for every connected component in a graph figure. In step ST2a, the graph graphic arrangement unit 4 searches for and removes multiple branches and self-cycles from the graph graphic data in the flow shown in FIG.

グラフ図形配置部4は、ある連結成分についてステップST2aの処理を実行すると、ループ用のカウンタであるcountの値を0に初期化する(ステップST3a)。この後、グラフ図形配置部4は、例えば上記式(1)のような、アークの両端の各ノードに隣接するノードの半径に関して増加の傾向にある算定式を用いて、各ノード間の理想距離を算出する(ステップST4a)。   When executing the processing of step ST2a for a certain connected component, the graph figure arrangement unit 4 initializes the value of the count which is a loop counter to 0 (step ST3a). After that, the graph figure arrangement unit 4 uses an equation that tends to increase with respect to the radius of the node adjacent to each node at both ends of the arc, for example, the above equation (1), and the ideal distance between the nodes. Is calculated (step ST4a).

各ノード間の理想距離を算出すると、グラフ図形配置部4は、例えば上記式(2)で定義される評価関数Eの値が予め設定した基準値より小さくなった、又は、countの値が設定値より大きくなったかのいずれかの条件を満たすか否かにより、グラフ図形自動配置アルゴリズムの終了を判定する(ステップST5a)。ここで、上記いずれかの条件を満たし、グラフ図形の配置が決定されたと判断される場合、グラフ図形配置部4は、配置決定したグラフ図形データを、取り除いた多重枝、自己閉路を復元したグラフデータとしてグラフデータ記憶部7へ記憶する(ステップST6a)。   When the ideal distance between the nodes is calculated, the graph figure placement unit 4 sets, for example, the value of the evaluation function E defined by the above equation (2) is smaller than a preset reference value or the count value is set. The end of the graph graphic automatic placement algorithm is determined depending on whether or not one of the conditions is satisfied (step ST5a). Here, if it is determined that any of the above conditions is satisfied and the placement of the graph figure is determined, the graph figure placement unit 4 is a graph obtained by restoring the multiple branches and self-cycles from which the placed graphic figure data is removed. The data is stored as data in the graph data storage unit 7 (step ST6a).

一方、上記条件のいずれも満たさない場合、グラフ図形配置部4は、countの値を1だけ増やし(ステップST7a)、上記式(2)による評価関数Eの値が小さくなるようにノードの位置を変更する(ステップST8a)。また、グラフ図形配置部4は、配置を決定したグラフ図形を逐次描画するか否かを設定する逐次描画フラグを有し、この逐次描画フラグがオンかオフであるかによって、ステップST8aにおいてノードを移動したグラフ図形を逐次描画するか否かが判断される(ステップST9a)。   On the other hand, if none of the above conditions is satisfied, the graph graphic placement unit 4 increases the value of count by 1 (step ST7a), and changes the position of the node so that the value of the evaluation function E according to the above equation (2) becomes small. Change (step ST8a). Further, the graph graphic arrangement unit 4 has a sequential drawing flag for setting whether or not to sequentially draw the graphic figure whose arrangement has been determined. Depending on whether this sequential drawing flag is on or off, a node is set in step ST8a. It is determined whether or not the moved graph figure is sequentially drawn (step ST9a).

ステップST9aにおいて逐次描画フラグがオンであれば、グラフ図形配置部4は、countの値が描画条件を満たすかを判断する(ステップST10a)。例えば、countの値によるループを何回行う毎にグラフ図形を描画するのかを示す値Cを、逐次描画する割合を決める値として予め設定する。グラフ図形配置部4は、countの値がCで割り切れた場合、描画条件を満たすと判断して、ステップST11aにおける描画処理に移行する。また、countの値がCで割り切れなければ、描画条件を満たさないと判断して、ステップST5aの処理に戻る。   If the sequential drawing flag is on in step ST9a, the graph figure arrangement unit 4 determines whether the count value satisfies the drawing condition (step ST10a). For example, a value C indicating how many times the loop based on the value of the count is performed is drawn in advance as a value for determining the ratio of successive drawing. When the value of count is divisible by C, the graph graphic arrangement unit 4 determines that the drawing condition is satisfied, and proceeds to the drawing process in step ST11a. If the count value is not divisible by C, it is determined that the drawing condition is not satisfied, and the process returns to step ST5a.

グラフ図形配置部4は、ステップST10aで描画条件を満たしていると判断された場合、ステップST8aでノードの位置が変更されたグラフ図形のデータをグラフデータ記憶部7に記憶する。この後、管理部3は、このグラフ図形データをグラフ図形描画部6に出力する。これにより、グラフ図形描画部6は、出力装置8を構成するLCD等の表示装置において、現在表示されているグラフ図形を消去し、かわりにステップST8aでノードの位置が変更されたグラフ図形を表示する。このようにすることで、グラフ図形の自動配置処理によるグラフ図形の変化を適切な進度で連続的に表示することができる。   When it is determined in step ST10a that the drawing conditions are satisfied, the graph graphic arrangement unit 4 stores the data of the graph graphic in which the node position is changed in step ST8a in the graph data storage unit 7. Thereafter, the management unit 3 outputs the graph graphic data to the graph graphic drawing unit 6. As a result, the graph graphic drawing unit 6 erases the currently displayed graph graphic on the display device such as the LCD constituting the output device 8, and instead displays the graph graphic in which the position of the node is changed in step ST8a. To do. By doing in this way, the change of the graph figure by the graph graphic automatic arrangement process can be continuously displayed with an appropriate progress.

次にグラフ図形の編集処理について説明する。
図4は、実施の形態1のグラフ図形配置装置によるグラフ図形編集処理の流れを示すフローチャートであり、この図及び図1を用いて説明する。
グラフ図形の編集にあたり、処理装置2は、先ず、入力装置1を構成するマウス等のポインティングデバイスによってグラフ図形編集に関するコマンド又はデータの入力待ち状態にある(ステップST1b)。ここで、入力装置1を用いてコマンド又はデータが入力されると、グラフ図形配置部4を介して管理部3に出力される。
Next, the graph graphic editing process will be described.
FIG. 4 is a flowchart showing the flow of the graph graphic editing process by the graph graphic arrangement apparatus according to the first embodiment, which will be described with reference to FIG. 1 and FIG.
In editing a graph figure, the processing device 2 is first waiting for input of a command or data related to graph figure editing by a pointing device such as a mouse constituting the input device 1 (step ST1b). Here, when a command or data is input using the input device 1, the command or data is output to the management unit 3 via the graph graphic arrangement unit 4.

管理部3では、入力されたコマンド又はデータがグラフ図形の編集に関するものであるか否かを判定する(ステップST2b)。ここで、グラフ図形の編集に関するものでないと判定されると、ステップST3bの処理に移行し、グラフ図形の編集に関するものであれば、ステップST5bの処理に移行する。   In the management unit 3, it is determined whether or not the input command or data is related to the editing of the graph figure (step ST2b). If it is determined that the graph graphic is not related to editing, the process proceeds to step ST3b. If the graphic graphic is related to editing, the process proceeds to step ST5b.

ステップST3bにおいて、管理部3は、入力されたコマンド又はデータがグラフ図形の自動描画処理に関するものであるか否かを判定する。ここで、グラフ図形の自動描画に関するものでないと判定されると、ステップST4bの処理に移行し、グラフ図形の自動描画に関するものであれば、ステップST6bの処理に移行する。   In step ST3b, the management unit 3 determines whether or not the input command or data is related to the graph drawing automatic drawing process. If it is determined that the graph graphic is not related to automatic drawing, the process proceeds to step ST4b. If the graphic graphic is related to automatic drawing, the process proceeds to step ST6b.

ステップST4bでは、管理部3が、入力されたコマンドが処理の終了コマンドであるか否かを判定し、終了コマンドであれば処理を終了する。また、終了コマンドでなければ、グラフ図形の編集処理及びグラフ図形の自動描画処理以外の他の処理に関するコマンド又はデータであると判定してその処理を実行し、その後ステップST1bに戻ってコマンド又はデータの入力待ち状態になる。   In step ST4b, the management unit 3 determines whether or not the input command is a process end command. If the command is an end command, the process ends. If the command is not an end command, it is determined that the command or data is related to processing other than graph graphic editing processing and graph graphic automatic drawing processing, the processing is executed, and then the process returns to step ST1b to execute the command or data. Waiting for input.

管理部3は、ステップST2bで、入力されたコマンド又はデータがグラフ図形の編集に関するものであると判定すると、このコマンド又はデータをグラフ図形編集部5に出力する。グラフ図形編集部5は、管理部3から入力されたコマンド又はデータに従い、グラフ図形の編集処理を実行する(ステップST5b)。編集内容としては、ノードの移動、削除及び拡大縮小、アークの追加及び削除等があり、グラフ図形の配置を適当なノードあるいは適当な座標を中心に拡大又は縮小することもできる。   If the management unit 3 determines in step ST2b that the input command or data is related to graph graphic editing, the management unit 3 outputs the command or data to the graph graphic editing unit 5. The graph graphic editing unit 5 executes graph graphic editing processing in accordance with the command or data input from the management unit 3 (step ST5b). Editing contents include movement, deletion and enlargement / reduction of nodes, addition / deletion of arcs, and the like, and it is also possible to enlarge or reduce the arrangement of graph figures centering on appropriate nodes or appropriate coordinates.

また、管理部3は、ステップST3bで、入力されたコマンド又はデータがグラフ図形の自動描画処理に関するものであると判定すると、このコマンド又はデータをグラフ図形配置部4に出力する。グラフ図形配置部4では、管理部3から入力されたコマンド又はデータに従って、図3に示したような流れでグラフ図形の配置処理を実行し、配置決定されたグラフ図形のデータをグラフデータ記憶部7に記憶する。この後、グラフ図形描画部6は、自動描画すべきグラフ図形データをグラフデータ記憶部7から読み出して、出力装置8の表示装置に表示する(ステップST6b)。   If the management unit 3 determines in step ST3b that the input command or data is related to the automatic drawing process of the graph graphic, the management unit 3 outputs the command or data to the graph graphic arrangement unit 4. The graph graphic arrangement unit 4 executes the graphic graphic arrangement process according to the command or data input from the management unit 3 according to the flow shown in FIG. 3, and the graph data storage unit stores the determined graphic graphic data. 7 Thereafter, the graph graphic drawing unit 6 reads the graph graphic data to be automatically drawn from the graph data storage unit 7 and displays it on the display device of the output device 8 (step ST6b).

図5は、グラフ図形の描画例を示す図であり、図5(a)は本実施の形態を適用せずにグラフ図形を描画した場合を示し、図5(b)は図5(a)と同一の構成要素を有するグラフ図形に対して本実施の形態によるグラフ図形配置方法を適用した場合の描画例を示している。図5に示すグラフ図形は、半径の小さい円で表記されるノードと、このノードより半径の大きい円で表記される、ある程度の大きさを持ったノードとを構成要素として含んでいる。このため、ノードの大きさを考慮しないと、グラフ図形を配置した際、例えば大きなノード同士が重なって配置されてしまう。   FIG. 5 is a diagram showing a drawing example of a graph figure. FIG. 5A shows a case where a graph figure is drawn without applying this embodiment, and FIG. 5B shows a case where FIG. The drawing example at the time of applying the graph figure arrangement | positioning method by this Embodiment with respect to the graph figure which has the same component as is shown. The graph figure shown in FIG. 5 includes a node represented by a circle having a small radius and a node having a certain size represented by a circle having a larger radius than this node. For this reason, if the size of a node is not taken into consideration, when graph figures are arranged, for example, large nodes are arranged overlapping each other.

図5(a)の例は、ユーザが、グラフ図形エディタを用いて、上述のようなグラフ図形を入力した際の描画例であり、ユーザが思いつくままに描いたためアークの交差が多く、またノードの配置も見やすい配置になっておらず、ノード同士の重なりも生じている。
これに対して、本実施の形態1によるグラフ図形配置方法では、上記式(1)で定義されるような、アークの両端の各ノードに隣接するノードの半径と相関のある、例えば増加の傾向にある算定式を用いて各ノード間の理想距離を算出し、上記式(2)で定義されるようなノード間の相互作用の発生に関する評価関数Eの値がより小さくなるように配置位置を決定する。これにより、アークの交差やノードの重なりのないグラフ図形の配置が実現される。従って、図5(b)に示すように、図5(a)と比較して各段に見やすい描画がなされる。
The example of FIG. 5A is a drawing example when the user inputs the graph figure as described above using the graph figure editor, and the user draws as he / she thinks. This arrangement is not easy to see, and there is an overlap between nodes.
On the other hand, in the graph figure arrangement method according to the first embodiment, for example, an increasing tendency correlated with the radius of the node adjacent to each node at both ends of the arc as defined by the above formula (1). Is used to calculate the ideal distance between the nodes, and the placement position is set so that the value of the evaluation function E regarding the occurrence of the interaction between the nodes as defined by the above formula (2) becomes smaller. decide. Thereby, the arrangement of graph figures without arc crossing or node overlap is realized. Therefore, as shown in FIG. 5B, the drawing is easier to see in each stage than in FIG.

図6は、グラフ図形の描画の他例を示す図であり、図6(a)はある程度の大きさを持つノードを含む複数のノードを円周上に並べてアークで結んだグラフ図形の描画例を示しており、図6(b)は図6(a)と同一の構成要素を有するグラフ図形に対して本実施の形態によるグラフ図形配置方法を適用した場合の描画例を示している。図6(a)のように、複数のノードを配置し、アークで接続してしまうと、アークの交差が非常に多く、ノードの重なりも生じており、ノード同士の接続関係が分かりにくい非常に見難い描画結果となる。   FIG. 6 is a diagram showing another example of drawing a graph figure. FIG. 6A is a drawing example of a graph figure in which a plurality of nodes including nodes having a certain size are arranged on the circumference and connected by an arc. FIG. 6B shows a drawing example when the graph graphic arrangement method according to the present embodiment is applied to a graph graphic having the same components as FIG. As shown in FIG. 6 (a), when a plurality of nodes are arranged and connected by arcs, there are a large number of arc crossings and overlapping of nodes, which makes it difficult to understand the connection relationship between nodes. Drawing results are difficult to see.

そこで、このグラフ図形に対して本実施の形態1によるグラフ図形配置方法を適用すると、上記式(1)や上記式(2)等を用いて、ノードの大きさを考慮し、重なり等のノード間の相互作用ができるだけ小さくなるようにグラフ図形の構成要素が配置される。これにより、図6(b)に示す例では、図6(a)と同一構成のグラフ図形が例えば8つの大径の円の各ノードから放射状に小径のノードが接続する接続構造を含むグラフ図形が得られる。図6(a)と比較すると明らかなように、ノード間の重なりがなくなり、アークの交差がほとんど無い、非常に見やすい描画結果になっている。   Therefore, when the graph graphic arrangement method according to the first embodiment is applied to this graph graphic, nodes such as overlaps are considered in consideration of the size of the node using the above formula (1), the above formula (2), and the like. The components of the graph figure are arranged so that the interaction between them becomes as small as possible. Accordingly, in the example shown in FIG. 6B, the graph figure having the same configuration as that in FIG. 6A includes a connection structure in which small diameter nodes are connected radially from, for example, each node of eight large diameter circles. Is obtained. As is clear from the comparison with FIG. 6A, there is no overlap between the nodes, and the drawing result is very easy to see with almost no arc crossing.

以上のように、この実施の形態1によれば、グラフ図形配置部4が、複数のノードと、接続関係を有するノード間を結ぶ線として定義したアークとで構成されるグラフ図形を配置するにあたり、当該グラフ図形中のアーク両端の各ノードに接続されるノードの大きさと相関がある算定式、特にアーク両端の各ノードに接続されるノードの大きさに関して増加傾向がある算定式を用いて各ノード間の距離の設定目標値を算出し、算出されたノード間距離の設定目標値に基づいて、各ノードの配置を非階層的に決定するので、ノードの大きさに応じてグラフ図形が配置され、アークの交差やノードの重なりを防ぐことができ、見やすいグラフ図形の描画を実現することができる。   As described above, according to the first embodiment, the graph graphic placement unit 4 places a graph graphic composed of a plurality of nodes and an arc defined as a line connecting nodes having a connection relationship. , Using a calculation formula that correlates with the size of the node connected to each node at both ends of the arc in the graph figure, in particular, a calculation formula that tends to increase with respect to the size of the node connected to each node at both ends of the arc. The target setting value for the distance between nodes is calculated, and the placement of each node is determined non-hierarchically based on the calculated target setting value for the distance between nodes, so the graph figure is placed according to the size of the node. Thus, arc crossing and node overlap can be prevented, and easy-to-view graph graphics can be drawn.

また、この実施の形態1によれば、グラフ図形配置部4が、グラフ図形を配置するにあたり、グラフ図形から複数のアークを介して接続される2つのノード間を多重枝として取り除き、これらノード間の距離について設定目標値を算出するので、グラフ図形の構成要素が全体としてバランスのとれた配置がなされ、見やすいグラフ図形の描画を実現することができる。   Further, according to the first embodiment, when the graph graphic arrangement unit 4 arranges the graph graphic, two nodes connected via a plurality of arcs are removed from the graph graphic as multiple branches, and the inter-nodes are connected. Since the set target value is calculated with respect to the distance, the components of the graph figure are arranged in a balanced manner as a whole, and the drawing of the graph figure that is easy to see can be realized.

さらに、この実施の形態1によれば、グラフ図形配置部4が、ノード間の距離の設定目標値と、対応する実際のノード間距離との相関を表す関数値の、配置対象のグラフ図形における全てのノードについての和を評価関数として定義し、この評価関数の値が平面配置上で小さくなるようにノード配置の変更を逐次的に行うので、グラフ図形構造の特徴に応じてグラフ図形を配置することができ、見やすいグラフ図形の描画を実現することができる。   Further, according to the first embodiment, the graph graphic placement unit 4 has a function value representing the correlation between the set target value of the distance between nodes and the corresponding actual distance between nodes in the graph graphic to be placed. The sum of all nodes is defined as an evaluation function, and the node arrangement is changed sequentially so that the value of this evaluation function becomes smaller on the plane arrangement, so the graph figure is arranged according to the characteristics of the graph figure structure. It is possible to realize easy-to-see graph drawing.

さらに、この実施の形態1によれば、評価関数Eの値に対するノードi,j間の理想距離eijと実際のノードi,j間の距離dijとの相関の寄与率kijを、ノードi,j間の理想距離eij又は対応する実際のノードi,j間の距離dijのいずれかに関して減少傾向がある関数とするので、ノードi,j間の理想距離eijが離れる程に、評価関数Eの値に占める、理想距離eijと実際の距離dijとの相関を表す関数値(例えば、理想距離eijと実際の距離dijとの誤差)の相対的な大きさを小さくすることができ、また、ノード同士が接近しすぎて重なることを少なくすることができる。 Furthermore, according to the first embodiment, the contribution rate k ij of the correlation between the ideal distance e ij between the nodes i and j and the actual distance d ij between the nodes i and j with respect to the value of the evaluation function E is expressed by the node Since the function tends to decrease with respect to either the ideal distance e ij between i and j or the corresponding distance d ij between the actual nodes i and j, the ideal distance e ij between the nodes i and j increases as the distance increases. The relative magnitude of a function value (for example, an error between the ideal distance e ij and the actual distance d ij ) representing the correlation between the ideal distance e ij and the actual distance d ij in the value of the evaluation function E It is possible to reduce the size, and it is possible to reduce the overlap between nodes that are too close to each other.

実施の形態2.
本実施の形態2では、ノード間の距離の設定目標値と、対応する実際のノード間距離との差に基づいてノード間に働く力を定義し、図形配置の対象となるノード間に働く力が平面配置上で平衡になるようにノード配置を逐次的に変更するものである。
実施の形態2によるグラフ図形配置装置は、上記実施の形態1と基本的な構成は同様であるが、グラフ図形配置部4によりノード間に働く力を配置位置の判定パラメータとしてグラフ図形の配置処理がなされる点で異なる。
Embodiment 2. FIG.
In the second embodiment, the force acting between nodes is defined based on the difference between the set target value of the distance between nodes and the corresponding actual distance between nodes, and the force acting between the nodes to be placed in the graphic layout. The node arrangement is sequentially changed so that is balanced on the plane arrangement.
The graph graphic arrangement device according to the second embodiment has the same basic configuration as that of the first embodiment, but the graphic graphic arrangement processing is performed using the force acting between the nodes by the graph graphic arrangement unit 4 as a determination parameter for the arrangement position. It differs in that it is made.

次に、実施の形態2によるグラフ図形配置処理の詳細について説明する。
グラフ図形配置部4は、上記実施の形態1と同様に、グラフ図形を自動的に見やすく配置する処理手段を備えている。本実施の形態2によるグラフ図形配置部4には、ノード間に働く力が定義されており、ノード間に働く力ができるだけ平衡する状態としてグラフ図形の配置を求める。
Next, details of the graph graphic arrangement processing according to the second embodiment will be described.
Similarly to the first embodiment, the graph graphic arrangement unit 4 includes processing means for automatically arranging the graph graphic so that it can be easily seen. In the graph graphic arrangement unit 4 according to the second embodiment, the force acting between the nodes is defined, and the graph graphic arrangement is obtained in a state where the forces acting between the nodes are balanced as much as possible.

一方、実施の形態2のグラフ図形配置部4では、アークaijの両端のノードi,j間のグラフ図形上の理想的な距離eijが下記式(6)のように定義される。但し、下記式(6)において、αはノード間の長さの基準となるスケーリング定数である。Niはノードiに隣接するノードの集合である。Rmはノードmの半径であり、m⊂Ni又はm⊂Njである。右辺の第1項を2で割っているのは、ノードiとノードjに関して平均をとるという意味合いである。Pはノード間の理想距離をある値以下にするための定数である。

Figure 2007233728
On the other hand, in the graph graphic arrangement unit 4 of the second embodiment, an ideal distance e ij on the graph graphic between the nodes i and j at both ends of the arc a ij is defined as the following equation (6). However, in the following formula (6), α is a scaling constant serving as a reference for the length between nodes. N i is a set of nodes adjacent to the node i. R m is the radius of the node m and is m ⊂N i or m ⊂N j . Dividing the first term on the right side by 2 means that the average is taken for node i and node j. P is a constant for keeping the ideal distance between nodes below a certain value.
Figure 2007233728

上記式(6)により、アークの理想的な長さはノード半径Rmの増加関数となる。つまり、上記式(6)によって、ノードi,j間の理想的な距離eijは、ノードi,jに半径の大きなノードが接続するほど長くなる傾向にある。
なお、本発明は、ノードi,j間の理想的な距離を上記式(6)で求める場合に限定されるものではなく、1つのアークで結ばれるノード間の理想的な距離をノードの状態によって決定する関数の算定式であればよく、目的に応じて自由に設定することができる。
From the above equation (6), the ideal length of the arc is an increasing function of the node radius R m . That is, according to the above equation (6), the ideal distance e ij between the nodes i and j tends to become longer as a node with a larger radius is connected to the nodes i and j.
The present invention is not limited to the case where the ideal distance between the nodes i and j is obtained by the above equation (6), but the ideal distance between the nodes connected by one arc is the state of the node. It is sufficient that the calculation formula of the function is determined by the above, and it can be freely set according to the purpose.

また、上記式(6)で定義される理想距離eijをアークaijの理想的な長さとし、1つのアークで結ばれない、隣接しないノードm,n間の理想距離は、ノードm,n間のパスを構成するアークの理想距離の合計の長さとして定義する。これにより、グラフ図形の配置において、遠方に配置すべきノードを不合理に接近させることを防ぐことができる。 The ideal distance e ij defined by the above equation (6) is the ideal length of the arc a ij , and the ideal distance between non-adjacent nodes m and n that are not connected by one arc is the nodes m and n. It is defined as the total length of the ideal distance of the arcs that make up the path between. Thereby, in arrangement | positioning of a graph figure, it can prevent making the node which should be arrange | positioned far away approach unreasonably.

本実施の形態2によるグラフ配置アルゴリズムが設定されたグラフ図形配置部4では、ノード間の距離ができるだけノード間の理想的な距離になるようにグラフを配置する。このため、ノード間の理想的な距離の定義に従い、ノード間の距離をグラフ図形の構造によって決定することができる。例えば、ノード間の距離の定義が上記式(6)である場合、次数の高いノードを含むグラフ図形も見やすく配置することができる。   In the graph figure placement unit 4 in which the graph placement algorithm according to the second embodiment is set, the graph is placed so that the distance between the nodes is as ideal as possible between the nodes. For this reason, according to the definition of the ideal distance between nodes, the distance between nodes can be determined by the structure of a graph figure. For example, when the definition of the distance between the nodes is the above equation (6), it is possible to arrange a graph figure including a node with a high degree in an easy-to-see manner.

さらに、グラフ図形配置部4には、評価関数として、ノードi,j間の理想距離eijと実際のノードi,j間の距離dijとの差(ノード間の距離の理想距離と対応する実際のノード間の距離との相関を表す関数)に適当な関数値を掛けた関数を、ノードi,j間に働く力Fijとして下記式(7)のように定義されている。但し、下記式(7)において、f(Iij)は常に正の値をとる適当な関数であり、評価関数Fijの値に対するノードi,j間の理想距離eijと実際のノードi,j間の距離dijとの相関の寄与率に相当する。Iijはノードi,j間のグラフ理論上の距離である。eijはノードi,j間のグラフ図形上の理想距離、dijはグラフ図形上のノードi,j間の実際の距離である。

Figure 2007233728
Further, the graph figure arrangement unit 4 corresponds to the difference between the ideal distance e ij between the nodes i and j and the actual distance d ij between the nodes i and j (corresponding to the ideal distance of the distance between the nodes) as an evaluation function. A function obtained by multiplying an appropriate function value by a function representing a correlation with an actual distance between nodes is defined as the following formula (7) as a force F ij acting between the nodes i and j. However, in the following equation (7), f (I ij ) is always appropriate function that takes a positive value, the node i to the value of the evaluation function F ij, the actual node and the ideal distance e ij between j i, This corresponds to the contribution ratio of the correlation with the distance d ij between j. I ij is a graph theoretical distance between nodes i and j. e ij is an ideal distance on the graph figure between the nodes i and j, and d ij is an actual distance between the nodes i and j on the graph figure.
Figure 2007233728

また、上記式(7)の右辺の第2項である(dij−eij)は、ノードi,j間の距離がノードi,j間の理想距離よりも小さい場合に負の値をとり、ノードi,j間の距離がノードi,j間の理想距離よりも大きい場合に正の値をとる。ここで、関数f>0なので、上記式(7)で定義される力はノードi,j間の距離がノードi,j間の理想距離よりも小さい場合に斥力となり、ノードi,j間の距離がノードi,j間の理想距離よりも大きいときには引力となる。 The second term (d ij −e ij ) on the right side of the above equation (7) 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. , Takes a positive value when the distance between nodes i and j is greater than the ideal distance between nodes i and j. Here, since the function f> 0, the force defined by the above equation (7) 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 force between the nodes i and j When the distance is larger than the ideal distance between the nodes i and j, it becomes an attractive force.

なお、上述の説明では、関数f(Iij)として常に正の値をとる適当な関数を選択したが、非常に小さな範囲で負の値をとるような関数でもよい。また、上記式(7)におけるf(Iij)として適当な関数を定義することにより、ノード間のグラフ理論上の距離が離れるにつれてノード間に働く力Fをより小さくすることができる。これにより、グラフ図形全体でのノード間に働く力Fの平衡に配慮しつつ、局所的なノード間に働く力Fが平衡なグラフ図形配置を行うことができる。 In the above description, an appropriate function that always takes a positive value is selected as the function f (I ij ). However, a function that takes a negative value within a very small range may be used. Also, by defining an appropriate function as f (I ij ) in the above equation (7), the force F acting between the nodes can be reduced as the graph theoretical distance between the nodes increases. Thereby, it is possible to perform the graph graphic arrangement in which the forces F acting between the local nodes are balanced while considering the balance of the forces F acting between the nodes in the entire graph graphics.

また、グラフ図形配置部4にはノード間のグラフ理論上の距離を表す関数f(Iij)が下記式(8)のように定義される。ここで、K3,K4は適当な正の定数である。dijはグラフ図形上のノードi,j間の実際の距離である。

Figure 2007233728
Further, a function f (I ij ) representing a graph theoretical distance between nodes is defined in the graph figure arrangement unit 4 as shown in the following formula (8). Here, K 3 and K 4 are appropriate positive constants. d ij is an actual distance between the nodes i and j on the graph figure.
Figure 2007233728

上記式(8)により、関数f(Iij)は、dij<Ri+Rjの関係が成り立つ場合、ノードi,j間の距離dijについての減少関数となり、ノード間が接近し過ぎるのを防ぐことができる。また、dij≧Ri+Rjの場合には、関数f(Iij)は、ノード間のグラフ理論上の距離Iijについての減少関数となり、ノード間のグラフ理論上の距離が離れるにつれて、ノード間の実際の距離とノード間の理想距離との誤差(ノード間の実際の距離とノード間の理想距離との相関を表す関数値)の大きさに対して相対的にノード間に働く力を小さくすることができる。これにより、グラフ図形全体でのノード間に働く力Fの平衡に配慮しつつ、局所的なノード間に働く力Fが平衡なグラフ図形配置を行うことができる。 According to the above equation (8), the function f (I ij ) becomes a decreasing function for the distance d ij between the nodes i and j when the relationship d ij <R i + R j is satisfied, and the nodes are too close to each other. Can be prevented. When d ij ≧ R i + R j , the function f (I ij ) is a decreasing function for the graph theoretical distance I ij between the nodes, and as the graph theoretical distance between the nodes increases, Force acting between nodes relative to the magnitude of the error between the actual distance between nodes and the ideal distance between nodes (a function value representing the correlation between the actual distance between nodes and the ideal distance between nodes) Can be reduced. Thereby, it is possible to perform the graph graphic arrangement in which the forces F acting between the local nodes are balanced while considering the balance of the forces F acting between the nodes in the entire graph graphics.

なお、本発明は、ノード間の力の定義として上記式(7)、(8)に限るものではなく、ノード間のグラフ理論上の距離が離れるにつれてその大きさが適切な程度で小さくなるような(減少傾向にあるような)関数であればよい。上述したように、本実施の形態2のグラフ図形配置法では、上記式(7)で定義されるノード間に働く力が平衡状態になるようにノードの配置を逐次的に変えていく。   Note that the present invention is not limited to the above formulas (7) and (8) as the definition of the force between the nodes, and the magnitude of the force is reduced to an appropriate level as the graph theoretical distance between the nodes increases. Any function that seems to be in a declining trend. As described above, in the graph graphic arrangement method of the second embodiment, the node arrangement is sequentially changed so that the forces acting between the nodes defined by the above equation (7) are in an equilibrium state.

次にグラフ図形配置部4によるグラフ図形の配置処理について説明する。
図7は、実施の形態2のグラフ図形配置部によるグラフ図形配置の流れを示すフローチャートであり、この図及び図1を用いて説明する。
先ず、グラフ図形配置部4は、グラフデータ記憶部7からグラフ図形のデータを取り出す(ステップST1c)。続いて、グラフ図形配置部4は、グラフ図形中の連結成分毎にステップST2c以降の処理を行う。ステップST2cにおいて、グラフ図形配置部4は、上記実施の形態1で図2を用いて説明した流れでグラフ図形データから多重枝、自己閉路を探索して取り除く。
Next, graph graphic layout processing by the graph graphic layout unit 4 will be described.
FIG. 7 is a flowchart showing a flow of graph graphic arrangement by the graph graphic arrangement unit of the second embodiment, and will be described with reference to this figure and FIG.
First, the graph graphic placement unit 4 takes out graph graphic data from the graph data storage unit 7 (step ST1c). Subsequently, the graph graphic arrangement unit 4 performs the processing after step ST2c for each connected component in the graph graphic. In step ST2c, the graph graphic placement unit 4 searches for and removes multiple branches and self-cycles from the graph graphic data in the flow described with reference to FIG. 2 in the first embodiment.

グラフ図形配置部4は、ある連結成分についてステップST2cの処理を実行すると、ループ用のカウンタであるcountの値を0に初期化する(ステップST3c)。この後、グラフ図形配置部4は、例えば上記式(6)のような1つのアークで結ばれるノード間の理想的な距離をノードの状態によって決定する関数の算定式を用いて、各ノード間の理想距離を算出する(ステップST4c)。   When executing the process of step ST2c for a certain connected component, the graph figure arranging unit 4 initializes the value of the count which is a loop counter to 0 (step ST3c). Thereafter, the graph figure placement unit 4 uses, for example, a calculation formula of a function for determining an ideal distance between nodes connected by one arc as in the above formula (6) according to the state of the node. Is calculated (step ST4c).

各ノード間の理想距離を算出すると、グラフ図形配置部4は、例えば上記式(7)で定義されるノードi,j間に働く力Fijの値が予め設定した基準値より小さくなった、又は、countの値が設定値より大きくなったかのいずれかの条件を満たすか否かにより、グラフ図形自動配置アルゴリズムの終了を判定する(ステップST5c)。ここで、上記いずれかの条件を満たし、グラフ図形の配置が決定されたと判断される場合、グラフ図形配置部4は、配置決定したグラフ図形データをグラフデータ記憶部7へ記憶する(ステップST6c)。 When the ideal distance between the nodes is calculated, the graph figure placement unit 4 has a value of the force F ij acting between the nodes i and j defined by the above formula (7), for example, smaller than a preset reference value. Alternatively, the end of the graph graphic automatic placement algorithm is determined depending on whether or not the condition of whether the count value is greater than the set value is satisfied (step ST5c). If it is determined that any of the above conditions is satisfied and the placement of the graph figure is determined, the graph figure placement unit 4 stores the placement-determined graph figure data in the graph data storage unit 7 (step ST6c). .

一方、上記条件のいずれも満たさない場合、グラフ図形配置部4は、countの値を1だけ増やし(ステップST7c)、上記式(7)による評価関数Fの値が小さくなるようにノードの位置を変更する(ステップST8c)。また、グラフ図形配置部4は、配置を決定したグラフ図形を逐次描画するか否かを設定する逐次描画フラグを有し、この逐次描画フラグがオンかオフであるかによって、ステップST8cにおいてノードを移動したグラフ図形を逐次描画するか否かが判断される(ステップST9c)。   On the other hand, when none of the above conditions is satisfied, the graph graphic placement unit 4 increases the value of count by 1 (step ST7c), and sets the position of the node so that the value of the evaluation function F according to the above equation (7) becomes small. Change (step ST8c). Further, the graph graphic arrangement unit 4 has a sequential drawing flag for setting whether or not to sequentially draw the graphic figure whose arrangement has been determined. Depending on whether this sequential drawing flag is on or off, a node is set in step ST8c. It is determined whether or not the moved graph figure is sequentially drawn (step ST9c).

ステップST9cにおいて逐次描画フラグがオンであれば、グラフ図形配置部4は、countの値が描画条件を満たすかを判断する(ステップST10c)。例えば、countの値によるループを何回行う毎にグラフ図形を描画するのかを示す値Cを、逐次描画する割合を決める値として予め設定する。グラフ図形配置部4は、countの値がCで割り切れた場合、描画条件を満たすと判断して、ステップST11cにおける描画処理に移行する。また、countの値がCで割り切れなければ、描画条件を満たさないと判断して、ステップST5cの処理に戻る。   If the sequential drawing flag is on in step ST9c, the graph figure placement unit 4 determines whether the value of count satisfies the drawing condition (step ST10c). For example, a value C indicating how many times the loop based on the value of the count is performed is drawn in advance as a value for determining the ratio of successive drawing. When the value of count is divisible by C, the graph graphic arrangement unit 4 determines that the drawing condition is satisfied, and proceeds to the drawing process in step ST11c. If the count value is not divisible by C, it is determined that the drawing condition is not satisfied, and the process returns to step ST5c.

グラフ図形配置部4は、ステップST10cで描画条件を満たしていると判断された場合、ステップST8cでノードの位置が変更されたグラフ図形のデータをグラフデータ記憶部7に記憶する。この後、管理部3は、このグラフ図形データをグラフ図形描画部6に出力する。これにより、グラフ図形描画部6は、出力装置8を構成するLCD等の表示装置において、現在表示されているグラフ図形を消去し、かわりにステップST8cでノードの位置が変更されたグラフ図形を表示する。このようにすることで、グラフ図形の自動配置処理によるグラフ図形の変化を適切な進度で連続的に表示することができる。   When it is determined in step ST10c that the drawing conditions are satisfied, the graph graphic arrangement unit 4 stores the data of the graph graphic in which the node position is changed in step ST8c in the graph data storage unit 7. Thereafter, the management unit 3 outputs the graph graphic data to the graph graphic drawing unit 6. As a result, the graph graphic drawing unit 6 erases the currently displayed graph graphic on the display device such as an LCD constituting the output device 8, and displays the graph graphic in which the position of the node is changed instead in step ST8c. To do. By doing in this way, the change of the graph figure by the graph graphic automatic arrangement process can be continuously displayed with an appropriate progress.

図8から図10までは、実施の形態2によるグラフ図形配置処理を施したグラフ図形の描画例を示す図である。図8に示すグラフ図形は、2つの小径の円で表記されるノード(以下、小径ノードと称す)と1つの大径の円で表記されるノード(以下、大径ノードと称す)とを構成要素として含んでいる。本実施の形態では、ノード間に働く力が平衡状態になるようにノードを配置する。図8に示す例では、大径ノードと小径ノードの間で働く力は平衡状態にあることから、大径ノードと2つの小径ノードの間におけるアークの長さはそれぞれ略等しくなる。つまり、サイズが同様な2つの小径ノード間で大径ノードとの距離が異なるような不規則な配置をした場合に生じるであろう見づらさを解消することができる。   FIG. 8 to FIG. 10 are diagrams showing examples of drawing a graph figure that has been subjected to the graphic figure arrangement process according to the second embodiment. The graph figure shown in FIG. 8 is composed of a node represented by two small-diameter circles (hereinafter referred to as a small-diameter node) and a node represented by one large-diameter circle (hereinafter referred to as a large-diameter node). Contains as an element. In the present embodiment, the nodes are arranged so that the forces acting between the nodes are in an equilibrium state. In the example shown in FIG. 8, since the force acting between the large diameter node and the small diameter node is in an equilibrium state, the arc lengths between the large diameter node and the two small diameter nodes are substantially equal. That is, it is possible to eliminate the difficulty in viewing that may occur when the irregular arrangement is made such that the distance from the large-diameter node differs between two small-diameter nodes having the same size.

また、図9に示すグラフ図形は、2つの小径ノードと2つの大径ノードを構成要素として含んでいる。図9の例においてもノード間に働く力が平衡状態になるように配置する。このように配置することで、図9に示すように、例えば1つの小径ノードと2つの大径ノードとの間を接続する場合において1つの小径ノードと2つの大径ノードをそれぞれ接続するアークの長さが略等しい配置となる。また、大径ノード間のアークを対称線として小径ノードが線対称に配置される。これにより、見やすいグラフ図形の描画を実現できる。   Moreover, the graph figure shown in FIG. 9 includes two small diameter nodes and two large diameter nodes as components. Also in the example of FIG. 9, the force acting between the nodes is arranged in an equilibrium state. By arranging in this way, as shown in FIG. 9, for example, when connecting between one small-diameter node and two large-diameter nodes, arcs connecting one small-diameter node and two large-diameter nodes respectively. The arrangement is approximately equal in length. In addition, the small-diameter nodes are arranged symmetrically with respect to the arc between the large-diameter nodes. Thereby, it is possible to realize easy-to-see graph drawing.

図10に示すグラフ図形は、3つの小径ノードと1つの大径ノードとを構成要素として含んでいる。図10の例においてもノード間に働く力が平衡状態になるように配置する。このように配置することで、図10に示すように、例えば3つの小径ノード間で大径ノードと接続する各アークの長さは略等しい配置になる。また、互いに接続する小径ノードに対し、大径ノード以外に接続を持たない小径ノードが大径ノードを介していずれかの小径ノードに偏ることなく配置される。これにより、アーク長さのばらつき等に起因するノードの重なり等を防ぐことができ、見やすいグラフ図形の描画を実現できる。   The graph figure shown in FIG. 10 includes three small diameter nodes and one large diameter node as components. Also in the example of FIG. 10, the force acting between the nodes is arranged in an equilibrium state. By arranging in this way, as shown in FIG. 10, for example, the lengths of the arcs connected to the large diameter node between the three small diameter nodes are substantially equal. Further, with respect to the small-diameter nodes connected to each other, the small-diameter nodes having no connection other than the large-diameter nodes are arranged without being biased to any of the small-diameter nodes via the large-diameter nodes. As a result, it is possible to prevent node overlap caused by variations in arc length and the like, and it is possible to realize easy-to-see graph drawing.

以上のように、この実施の形態2によれば、グラフ図形配置部4が、ノード間の距離の設定目標値と、対応する実際のノード間距離との差に基づいてノード間に働く力を定義し、図形配置の対象となるノード間に働く力が平面配置上でバランスするようにノード配置の変更を逐次的に行うことにより、グラフ図形構造の特徴に応じてグラフ図形を配置することができ、見やすいグラフ図形を得ることができる。   As described above, according to the second embodiment, the graph graphic placement unit 4 applies the force acting between the nodes based on the difference between the set target value of the distance between the nodes and the corresponding actual distance between the nodes. It is possible to place a graph figure according to the characteristics of the graph figure structure by defining and sequentially changing the node arrangement so that the force acting between the nodes subject to figure arrangement is balanced on the plane arrangement And easy-to-read graphs can be obtained.

また、上記実施の形態2によれば、評価関数Fの値に対するノード間の距離の設定目標値と、対応する実際のノード間距離との相関の寄与率を、ノード間の距離の設定目標値又はノード間のグラフ理論上の距離又はノード間距離についての減少傾向にあるような関数を評価関数とするので、グラフ図形全体でのノード間に働く力Fの平衡に配慮しつつ、局所的なノード間に働く力Fが平衡なグラフ図形配置を行うことができる。   Further, according to the second embodiment, the contribution ratio of the correlation between the set target value of the distance between nodes with respect to the value of the evaluation function F and the corresponding actual distance between nodes is set as the set target value of the distance between nodes. Alternatively, since the function that tends to decrease with respect to the graph theoretical distance between nodes or the distance between nodes is used as the evaluation function, locality is considered while considering the balance of the force F acting between the nodes in the entire graph figure. It is possible to perform graph graphic arrangement in which the force F acting between the nodes is balanced.

さらに、この実施の形態2によれば、評価関数Fijの値に対するノードi,j間の理想距離eijと実際のノードi,j間の距離dijとの相関の寄与率f(Iij)を、実際のノードi,j間の距離dij又はノードi,j間のグラフ理論上の距離Iijのいずれかに関して減少傾向がある関数とするので、ノードi,j間のグラフ理論上の距離Iijが離れる程に、評価関数Fijの値に占める、理想距離eijと実際の距離dijとの相関を表す関数値(例えば、理想距離eijと実際の距離dijとの誤差)の相対的な大きさを小さくすることができ、また、ノード同士が接近しすぎて重なることを少なくすることができる。 Furthermore, according to the second embodiment, the evaluation function F ij of nodes for values i, actual node i to the ideal distance e ij between j, the contribution rate of the correlation between the distance d ij between j f (I ij ) Is a function that tends to decrease with respect to either the actual distance d ij between the nodes i and j or the distance I ij in the graph theory between the nodes i and j. As the distance I ij increases, the function value indicating the correlation between the ideal distance e ij and the actual distance d ij occupying the value of the evaluation function F ij (for example, between the ideal distance e ij and the actual distance d ij The relative magnitude of (error) can be reduced, and it is possible to reduce the overlap between nodes that are too close to each other.

実施の形態3.
本実施の形態3は、上記実施の形態1、2によるグラフ図形の配置方法をネットワーク機器監視装置に適用することにより、監視対象のネットワーク機器の接続構造をグラフ図形として描画、編集するものである。
Embodiment 3 FIG.
In the third embodiment, the connection structure of the network device to be monitored is drawn and edited as a graph graphic by applying the graph graphic arrangement method according to the first and second embodiments to the network device monitoring apparatus. .

図11は、この発明の実施の形態3によるグラフ図形配置装置の構成を示すブロック図であり、本発明をネットワーク機器監視装置に適用した場合を示している。本実施の形態3によるグラフ図形配置装置は、入力装置9、ネットワーク機器監視装置10及び出力装置11を含んで構成される。なお、入力装置9側の機器と出力装置11側の機器とは、一つのCRT、LCDやキーボード、ハードディスク等を共有してもよく、入力データとグラフ図形の配置とをマルチウインドウ形式で表示することも自由である。   FIG. 11 is a block diagram showing a configuration of a graph figure arrangement apparatus according to Embodiment 3 of the present invention, and shows a case where the present invention is applied to a network equipment monitoring apparatus. The graph / graphic arrangement device according to the third embodiment includes an input device 9, a network device monitoring device 10, and an output device 11. The device on the input device 9 side and the device on the output device 11 side may share a single CRT, LCD, keyboard, hard disk, etc., and display the input data and the arrangement of graph figures in a multi-window format. It is also free.

また、ネットワーク機器監視装置10は、システム管理部12、ネットワーク機器データ管理部13、ネットワーク機器データ出力部14、ネットワーク機器データ処理部15、ネットワーク機器データ記憶部16、グラフエディタ管理部17、グラフ図形編集部18、グラフ図形配置部19、グラフ図形出力部20、グラフデータ抽出部21、及びグラフデータ記憶部22を備えている。ネットワーク機器監視装置10は、例えばネットワーク機器の状態を監視する従来のネットワーク機器監視装置に対し、ネットワーク上のネットワーク機器の接続構造をグラフ図形として描画、編集する機能を追加したものである。   The network device monitoring apparatus 10 includes a system management unit 12, a network device data management unit 13, a network device data output unit 14, a network device data processing unit 15, a network device data storage unit 16, a graph editor management unit 17, a graph figure. An editing unit 18, a graph graphic arrangement unit 19, a graph graphic output unit 20, a graph data extraction unit 21, and a graph data storage unit 22 are provided. For example, the network device monitoring apparatus 10 is provided with a function of drawing and editing a connection structure of network devices on a network as a graph figure to a conventional network device monitoring device that monitors the state of the network device.

システム管理部12は、入力装置9を介して入力された情報に従う管理情報をネットワーク機器データ管理部13又はグラフエディタ管理部17に出力して、ネットワーク機器データ管理部13又はグラフエディタ管理部17による処理を管理する。   The system management unit 12 outputs management information according to the information input via the input device 9 to the network device data management unit 13 or the graph editor management unit 17, and the network device data management unit 13 or the graph editor management unit 17 Manage the process.

ネットワーク機器データ管理部13は、システム管理部12からの管理情報に従い、ネットワーク機器データ処理部15に処理を移したり、ネットワーク機器データ出力部14に処理を移す。また、ネットワーク機器データ出力部14は、ネットワーク機器データ管理部13からの情報(制御情報)に従って、ネットワーク機器データ記憶部16からのネットワーク機器データを基に出力装置11に出力する。   The network device data management unit 13 moves the process to the network device data processing unit 15 or moves the process to the network device data output unit 14 according to the management information from the system management unit 12. Further, the network device data output unit 14 outputs to the output device 11 based on the network device data from the network device data storage unit 16 according to the information (control information) from the network device data management unit 13.

ネットワーク機器データ処理部15は、ネットワーク機器データ管理部13からの情報(制御情報)に従い、ネットワーク機器データ記憶部16に記憶されるネットワーク機器データに対し、ネットワーク機器間の接続関係の変更等の各種処理を行う。ネットワーク機器データ記憶部16は、ネットワーク機器データを記憶する手段を備えており、ネットワーク機器データの記憶、読み出しを行う。例えば、ネットワーク機器監視装置10に搭載されたハードディスクや記憶媒体を再生するドライブ装置等により具現化される。また、ネットワーク機器データは、ネットワーク機器に対応するシンボル画像やネットワーク機器間の接続構造を規定するデータ等を含む。   The network device data processing unit 15 performs various operations such as changing the connection relationship between network devices for the network device data stored in the network device data storage unit 16 in accordance with information (control information) from the network device data management unit 13. Process. The network device data storage unit 16 includes means for storing network device data, and stores and reads network device data. For example, it is embodied by a hard disk mounted on the network device monitoring apparatus 10 or a drive device that reproduces a storage medium. The network device data includes a symbol image corresponding to the network device, data defining a connection structure between the network devices, and the like.

グラフエディタ管理部17は、システム管理部12からの管理情報に従い、グラフ図形編集部18、グラフ図形配置部19、グラフ図形出力部20又はグラフデータ抽出部21に処理を移す。グラフ図形編集部18は、グラフエディタ管理部17からの情報(制御情報)に従い、グラフ図形の編集を行う手段を備えている。編集内容は、ノードの追加、削除及び移動、アークの追加及び削除等である。   The graph editor management unit 17 moves the processing to the graph graphic editing unit 18, the graph graphic arrangement unit 19, the graph graphic output unit 20, or the graph data extraction unit 21 according to the management information from the system management unit 12. The graph graphic editing unit 18 includes means for editing the graph graphic in accordance with information (control information) from the graph editor management unit 17. The editing contents are node addition, deletion and movement, arc addition and deletion, and the like.

グラフ図形配置部19は、グラフエディタ管理部17からの情報(制御情報)に従い、グラフ図形を配置する手段を備えている。このグラフ図形を配置する手段としては、上記実施の形態1で説明した、予め決められたノード間の理想距離にできるだけ実際のノード間の距離が近くなるようにグラフ図形を配置する方法や、上記実施の形態2で説明したように、ノード間の距離の設定目標値と対応する実際のノード間距離との差に基づいてノード間に働く力を定義し、図形配置の対象となるノード間に働く力が平面配置上で平衡になるように配置する方法で、グラフ図形の配置を行うものが考えられる。なお、本実施の形態3では、上記実施の形態2によるグラフ図形の配置方法において、後述する関数f(Iij)が定義される。 The graph graphic placement unit 19 includes means for placing a graph graphic in accordance with information (control information) from the graph editor management unit 17. As the means for arranging the graph figure, the method for arranging the graph figure as described in the first embodiment so that the distance between the actual nodes is as close as possible to the predetermined ideal distance between the nodes, As described in the second embodiment, the force acting between the nodes is defined based on the difference between the set target value of the distance between the nodes and the corresponding actual distance between the nodes. It is possible to arrange graph figures by arranging them so that the working forces are balanced on the plane arrangement. In the third embodiment, a function f (I ij ) described later is defined in the graph graphic layout method according to the second embodiment.

グラフ図形出力部20は、グラフエディタ管理部17からの情報(制御情報)に従い、グラフデータ記憶部22に記憶されたグラフ図形データを出力装置11に出力する。グラフデータ抽出部21は、グラフエディタ管理部17からの情報(制御情報)に従って、ネットワーク機器データ記憶部16に記憶されるネットワーク機器データからネットワーク上のネットワーク機器の接続構造を規定する情報を読み出し、グラフ図形データとして抽出する。グラフデータ記憶部22は、グラフ図形データを記憶する手段を備えており、グラフエディタ管理部17からの情報(制御情報)に従い、グラフ図形データの記憶、読み出しを行う。例えば、ネットワーク機器監視装置10に搭載されたハードディスクや記憶媒体を再生するドライブ装置等により具現化される。   The graph graphic output unit 20 outputs the graph graphic data stored in the graph data storage unit 22 to the output device 11 in accordance with information (control information) from the graph editor management unit 17. The graph data extraction unit 21 reads information defining the connection structure of network devices on the network from the network device data stored in the network device data storage unit 16 according to the information (control information) from the graph editor management unit 17. Extracted as graph graphic data. The graph data storage unit 22 includes means for storing graph graphic data, and stores and reads graph graphic data according to information (control information) from the graph editor management unit 17. For example, it is embodied by a hard disk mounted on the network device monitoring apparatus 10 or a drive device that reproduces a storage medium.

なお、システム管理部12、ネットワーク機器データ管理部13、ネットワーク機器データ管理部13、ネットワーク機器データ出力部14、ネットワーク機器データ処理部15、ネットワーク機器データ記憶部16、グラフエディタ管理部17、グラフ図形編集部18、グラフ図形配置部19、グラフ図形出力部20、グラフデータ抽出部21及びグラフデータ記憶部22は、例えば、本発明の趣旨に従う処理プログラムを、ネットワーク機器監視装置10を構成するコンピュータの演算処理装置に実行させてその動作を制御することにより、ソフトウエアとハードウエアとが協働した具体的な手段として実現することができる。   In addition, the system management unit 12, the network device data management unit 13, the network device data management unit 13, the network device data output unit 14, the network device data processing unit 15, the network device data storage unit 16, the graph editor management unit 17, the graph figure The editing unit 18, the graph graphic arrangement unit 19, the graph graphic output unit 20, the graph data extraction unit 21, and the graph data storage unit 22 are, for example, a processing program according to the gist of the present invention. By executing the arithmetic processing unit and controlling its operation, it can be realized as a specific means in which software and hardware cooperate.

次に動作について説明する。
図12は、実施の形態3のグラフ図形配置装置によるグラフ図形の配置編集処理の流れを示すフローチャートであり、この図及び図11を用いて説明する。
グラフ図形の編集にあたり、ネットワーク機器監視装置10は、先ず、入力装置9を構成するマウス等のポインティングデバイスによってグラフ図形編集に関するコマンド又はデータの入力待ち状態にある(ステップST1d)。
Next, the operation will be described.
FIG. 12 is a flowchart showing the flow of graph graphic layout editing processing by the graph graphic layout device of the third embodiment, which will be described with reference to FIG.
In editing a graph figure, the network device monitoring apparatus 10 is first waiting for input of a command or data related to graph figure editing by a pointing device such as a mouse constituting the input device 9 (step ST1d).

この後、入力装置9を用いてコマンド又はデータが入力されると、システム管理部12は、入力されたコマンド又はデータがネットワーク機器データを処理するものであるか否かを判定する(ステップST2d)。ここで、ネットワーク機器データを処理するものでないと判定されると、ステップST3dの処理に移行し、ネットワーク機器データを処理するものであれば、ステップST7dの処理に移行する。   Thereafter, when a command or data is input using the input device 9, the system management unit 12 determines whether the input command or data is for processing network device data (step ST2d). . If it is determined that the network device data is not processed, the process proceeds to step ST3d. If the network device data is processed, the process proceeds to step ST7d.

ステップST3dにおいて、システム管理部12は、入力されたコマンド又はデータがグラフ図形の処理に関するものであるか否かを判定する。ここで、グラフ図形の処理に関するものでないと判定されると、ステップST14bの処理に移行し、グラフ図形の処理に関するものであれば、ステップST4dの処理に移行する。   In step ST <b> 3 d, the system management unit 12 determines whether or not the input command or data is related to graph graphic processing. If it is determined that the processing is not related to graph graphic processing, the process proceeds to step ST14b. If it is related to graph graphic processing, the processing proceeds to step ST4d.

システム管理部12は、入力されたコマンド又はデータがグラフ図形の処理に関するものである場合、これらコマンド又はデータがグラフ図形の自動配置に関するものであるか否かを判定する(ステップST4d)。このとき、グラフ図形の自動配置に関するものでないと判定されると、ステップST5dの処理に移行し、グラフ図形の自動配置に関するものであれば、ステップST11dの処理に移行する。   When the input command or data is related to the processing of the graph graphic, the system management unit 12 determines whether or not the command or data is related to the automatic arrangement of the graph graphic (step ST4d). At this time, if it is determined that the graph graphic is not related to automatic arrangement, the process proceeds to step ST5d, and if it is related to automatic graphic graphic arrangement, the process proceeds to step ST11d.

ステップST5dにおいて、システム管理部12は、入力されたコマンド又はデータがグラフ図形の自動配置に関するものでない場合、これらコマンド又はデータがグラフ図形の編集に関するものであるか否かを判定する。このとき、グラフ図形の編集に関するものでないと判定されると、ステップST6dの処理に移行し、グラフ図形の編集に関するものであれば、ステップST8dの処理に移行する。   In step ST5d, when the input command or data is not related to the automatic arrangement of the graph graphic, the system management unit 12 determines whether or not the command or data is related to the graphic graphic editing. At this time, if it is determined that the graph graphic is not related to editing, the process proceeds to step ST6d, and if it is related to graph graphic editing, the process proceeds to step ST8d.

ステップST6dでは、システム管理部12は、入力されたコマンド又はデータが、グラフ図形の処理に関するものであり、グラフ図形の配置及び編集以外の処理を行わせる旨のものであると判断し、これをグラフエディタ管理部17に出力する。これにより、グラフエディタ管理部17が、動作管理する構成部18〜22のいずれかに対し、グラフ図形の自動配置、グラフ図形の編集以外のグラフ図形の処理を実行させる。例えば、逐次描画フラグのオンオフの設定等を行う。この処理の後、再びステップST1dの処理に戻り、コマンド又はデータの入力待ち状態に移行する。   In step ST6d, the system management unit 12 determines that the input command or data is related to the processing of the graph graphic, and is intended to perform processing other than the layout and editing of the graph graphic. The data is output to the graph editor management unit 17. As a result, the graph editor management unit 17 causes any one of the configuration units 18 to 22 that perform operation management to execute graph graphic processing other than automatic graphic graphic placement and graph graphic editing. For example, the sequential drawing flag is turned on / off. After this process, the process returns to step ST1d again and shifts to a command or data input waiting state.

システム管理部12は、ステップST2dにおいて、入力されたコマンド又はデータが、ネットワーク機器データの処理に関するものであると判定すると、当該コマンド又はデータをネットワーク機器データ管理部13に出力する。   If the system management unit 12 determines in step ST2d that the input command or data is related to processing of network device data, the system management unit 12 outputs the command or data to the network device data management unit 13.

ネットワーク機器データ管理部13は、システム管理部12から入力したコマンド又はデータに従って、ネットワーク機器データの処理を管理する。この処理の内容としては、ネットワーク機器間の接続を表すリンクの作成及び削除、ネットワーク機器の追加等が考えられる。システム管理部12からの指示が上記処理内容であると、ネットワーク機器データ管理部13は、ネットワーク機器データ処理部15に上記処理を実行させる(ステップST7d)。   The network device data management unit 13 manages network device data processing according to the command or data input from the system management unit 12. The contents of this process may include creation and deletion of a link representing connection between network devices, addition of a network device, and the like. If the instruction from the system management unit 12 is the above processing content, the network device data management unit 13 causes the network device data processing unit 15 to execute the above processing (step ST7d).

例えば、ネットワーク機器データ処理部15は、ネットワーク機器データ管理部13から入力したコマンド又はデータに従い、ネットワーク機器データ記憶部16より読み出したネットワーク機器データに対してネットワーク機器間の接続を表すリンクを作成したり、既存のリンクを削除する処理を行い、ネットワーク機器データ記憶部16に記憶する。   For example, the network device data processing unit 15 creates a link representing the connection between the network devices for the network device data read from the network device data storage unit 16 in accordance with the command or data input from the network device data management unit 13. Or the existing link is deleted and stored in the network device data storage unit 16.

システム管理部12は、ステップST5dにおいて、入力されたコマンド又はデータがグラフ図形の編集に関するものであると判定すると、当該コマンド又はデータをグラフエディタ管理部17に出力する。   If the system management unit 12 determines in step ST5d that the input command or data is related to graph graphic editing, the system management unit 12 outputs the command or data to the graph editor management unit 17.

グラフエディタ管理部17は、システム管理部12から入力したコマンド又はデータに従って、グラフ図形の編集処理を管理する。この編集内容としては、ノードの追加、削除及び移動、アークの追加及び削除等が考えられる。この場合、グラフエディタ管理部17は、システム管理部12からの指示に従い、グラフ図形編集部18に上記編集処理を実行させる(ステップST8d)。   The graph editor management unit 17 manages graph graphic editing processing in accordance with commands or data input from the system management unit 12. As the editing contents, addition, deletion and movement of nodes, addition and deletion of arcs, and the like can be considered. In this case, the graph editor management unit 17 causes the graph graphic editing unit 18 to execute the editing process in accordance with an instruction from the system management unit 12 (step ST8d).

グラフ図形編集部18は、グラフエディタ管理部17から入力したコマンド又はデータに従って、上記実施の形態1で示した図4と同様の流れで、グラフデータ記憶部22より読み出したグラフ図形データに対して編集処理を行い、グラフデータ記憶部22に記憶する。   The graph graphic editing unit 18 operates on the graph graphic data read from the graph data storage unit 22 according to the command or data input from the graph editor management unit 17 in the same flow as in FIG. 4 described in the first embodiment. An editing process is performed and stored in the graph data storage unit 22.

一方、ステップST9dにおいて、グラフエディタ管理部17は、システム管理部12から入力したコマンド又はデータに従って、ステップST7dにおいてネットワーク機器データ処理部15がネットワーク機器データを編集し、且つ逐次描画フラグがオンであるか否かを判定する。ここで、ネットワーク機器データが編集されていないか、逐次描画フラグがオフである場合、再びステップST1dの処理に戻り、コマンド又はデータの入力待ち状態に移行する。   On the other hand, in step ST9d, the graph editor management unit 17 edits the network device data in step ST7d according to the command or data input from the system management unit 12, and the sequential drawing flag is on. It is determined whether or not. If the network device data has not been edited or the sequential drawing flag is off, the process returns to step ST1d again and shifts to a command or data input waiting state.

また、ネットワーク機器データが編集され、且つ逐次描画フラグがオンである場合、グラフエディタ管理部17は、グラフデータ抽出部21を制御して、ネットワーク機器データ記憶部16から、ネットワーク機器データ処理部15により編集されたネットワーク機器データにおけるネットワーク機器の画像及びその接続構造に関する情報を抽出させる。   When the network device data is edited and the sequential drawing flag is on, the graph editor management unit 17 controls the graph data extraction unit 21 from the network device data storage unit 16 to the network device data processing unit 15. The information about the network device image and its connection structure in the network device data edited by the above is extracted.

グラフデータ抽出部21は、抽出したネットワーク機器の画像やその接続構造に関する情報を、グラフ図形データとしてグラフデータ記憶部22に記憶する。これにより、グラフ図形配置部19が、グラフデータ抽出部21によりグラフデータ記憶部22に記憶されたグラフ図形データを読み出して、上記実施の形態1、2と同様な方法でグラフ図形配置処理を実行し、再びグラフデータ記憶部22に記憶する。なお、グラフ図形配置部19により実行されるグラフ図形の配置法は、上記実施の形態1、2に示したようにいくつかあり、必要に応じて配置法を任意の数だけ用意すればよい。   The graph data extraction unit 21 stores the extracted image of the network device and information related to the connection structure in the graph data storage unit 22 as graph graphic data. As a result, the graph graphic arrangement unit 19 reads the graph graphic data stored in the graph data storage unit 22 by the graph data extraction unit 21 and executes the graph graphic arrangement processing in the same manner as in the first and second embodiments. Then, it is stored again in the graph data storage unit 22. There are several graph graphic placement methods executed by the graph graphic placement unit 19 as shown in the first and second embodiments, and an arbitrary number of placement methods may be prepared as necessary.

この実施の形態3では、グラフ図形配置部19が、上記実施の形態2で示したグラフ図形配置法において上記式(8)のf(Iij)を下記式(9)で表したものを使用する。ここで、K5は適当な正の定数である。また、eijはノードi,j間のグラフ図形上の理想距離、Iijはノードi,j間のグラフ理論上の距離とする。

Figure 2007233728
In the third embodiment, the graph graphic arrangement unit 19 uses the graph graphic arrangement method shown in the second embodiment in which f (I ij ) of the above formula (8) is expressed by the following formula (9). To do. Here, K 5 is an appropriate positive constant. Further, e ij is an ideal distance on the graph figure between the nodes i and j, and I ij is a graph theoretical distance between the nodes i and j.
Figure 2007233728

これにより、(eij+Iij)が大きいほどf(Iij)は小さくなり、ノード間のグラフ理論上の距離が離れるにつれてノード間の実際の距離とノード間の理想距離との誤差の大きさに対して相対的にノード間に働く力を小さくすることができる。従って、グラフ図形の全ノード間で働く力のバランスを配慮しつつ、局所的なノード間で働く力のバランスのとれたグラフ図形の配置を行うことができる。 Thus, as (e ij + I ij ) increases, f (I ij ) decreases, and the magnitude of error between the actual distance between nodes and the ideal distance between nodes increases as the graph theoretical distance between nodes increases. In contrast, the force acting between the nodes can be reduced. Therefore, it is possible to arrange the graph figures in which the balance of the forces acting between the local nodes is balanced while considering the balance of the forces acting between all the nodes of the graph figures.

次に、グラフ図形出力部20が、グラフエディタ管理部17の指示に従い、グラフ図形配置部19により配置決定されたグラフ図形データを、グラフデータ記憶部22から読み出して、出力装置11を構成するLCD等の表示装置の画面に描画する(ステップST10d)。この後、再びステップST1dの処理に戻り、コマンド又はデータの入力待ち状態に移行する。   Next, the graph graphic output unit 20 reads out the graph graphic data determined by the graph graphic arrangement unit 19 from the graph data storage unit 22 according to the instruction of the graph editor management unit 17, and configures the LCD constituting the output device 11. And so on (step ST10d). Thereafter, the process returns to step ST1d again and shifts to a command or data input waiting state.

また、ステップST4dにおいて、システム管理部12が、入力されたコマンド又はデータがグラフ図形の自動配置に関するものであると判定すると、入力されたコマンド又はデータをグラフエディタ管理部17に出力する。グラフエディタ管理部17は、システム管理部12から入力されたコマンド又はデータに従って、グラフ図形配置部19を制御してグラフ図形の配置処理を実行させる(ステップST11d)。   In step ST4d, when the system management unit 12 determines that the input command or data is related to the automatic layout of the graph graphic, the input command or data is output to the graph editor management unit 17. The graph editor managing unit 17 controls the graph figure arranging unit 19 according to the command or data input from the system managing unit 12 to execute the graph figure arranging process (step ST11d).

例えば、グラフ図形配置部19は、グラフエディタ管理部17は、システム管理部12から入力されたコマンドが特定のグラフ図形に対する配置指示命令であった場合、該当するグラフ図形データをグラフデータ記憶部22から読み出して、ステップST10dと同様にしてグラフ図形の配置処理を行い、グラフデータ記憶部22に再び記憶する。   For example, when the command input from the system management unit 12 is an arrangement instruction command for a specific graph graphic, the graph graphic arrangement unit 19 displays the corresponding graph graphic data as a graph data storage unit 22. The graph graphic layout processing is performed in the same manner as in step ST10d, and is again stored in the graph data storage unit 22.

また、グラフエディタ管理部17は、ステップST12dにおいてグラフ図形編集部18がグラフ図形を編集すると、逐次描画フラグがオンであるか否かを判定する。ここで、逐次描画フラグがオンであれば、グラフエディタ管理部17は、グラフ図形配置部19を制御して、グラフ図形編集部18により編集されたグラフ図形データをグラフデータ記憶部22から読み出して、ステップST10dと同様にしてグラフ図形の配置処理を行い、グラフデータ記憶部22に再び記憶する。   In addition, when the graph graphic editing unit 18 edits the graph graphic in step ST12d, the graph editor management unit 17 determines whether or not the sequential drawing flag is on. Here, if the sequential drawing flag is on, the graph editor management unit 17 controls the graph graphic placement unit 19 to read the graph graphic data edited by the graph graphic editing unit 18 from the graph data storage unit 22. In the same manner as in step ST10d, the graph graphic layout processing is performed and stored again in the graph data storage unit 22.

このようにして、グラフ図形配置部19により配置決定されたグラフ図形データは、グラフエディタ管理部17の制御の下、グラフ図形出力部20に読み出され、出力装置11を構成するLCD等の表示装置の画面に描画される。なお、この描画処理後又はステップST12dで逐次描画フラグがオフであった場合、再びステップST1dの処理に戻り、コマンド又はデータの入力待ち状態に移行する。   In this way, the graphic data determined by the graphic graphic arrangement unit 19 is read out to the graphic graphic output unit 20 under the control of the graph editor management unit 17 and displayed on the LCD or the like constituting the output device 11. It is drawn on the screen of the device. Note that after this drawing process or when the sequential drawing flag is OFF in step ST12d, the process returns to step ST1d again and shifts to a command or data input waiting state.

ステップST14dにおいて、システム管理部12は、入力されたコマンド又はデータが終了処理に関するものであるか否かを判定する。ここで、入力されたコマンドが終了コマンドであり、終了処理に関するものであれば、処理を終了する。一方、入力されたコマンド又はデータが終了処理に関するものでなければ、システム管理部12は、入力されたコマンド又はデータがネットワーク機器データの処理に関するものでなく、且つグラフ図形の処理に関するものでなく、これら以外の処理に関するものであると判定し、当該他の処理に関する動作を不図示の他の構成要素に実行させる(ステップST13d)。この処理の後、再びステップST1dの処理に戻り、コマンド又はデータの入力待ち状態に移行する。   In step ST14d, the system management unit 12 determines whether the input command or data is related to the end process. Here, if the input command is an end command and relates to an end process, the process ends. On the other hand, if the input command or data is not related to the termination process, the system management unit 12 is not related to the processing of the network device data and the processing of the graph graphic. It determines with it being related to processes other than these, and performs the operation | movement regarding the said other process to other components not shown (step ST13d). After this process, the process returns to step ST1d again and shifts to a command or data input waiting state.

図13及び図14は、実施の形態3によるグラフ図形配置処理を施したネットワーク機器のグラフ図形の描画例を示す図である。図13に示すネットワーク機器のグラフ図形は、サイズが同じ11台のパーソナルコンピュータのシンボル画像からなるノード(以下、PCと称す)と、PCよりサイズが大きい3台のサーバのシンボル画像からなるノード(以下、サーバと称す)と、PC及びサーバよりサイズの小さい2台のルータのシンボル画像からなるノード(以下、ルータと称す)とを構成要素として含んでいる。本実施の形態においても、上記実施の形態2と同様に、ノード間に働く力が平衡状態になるようにノードを配置する。   FIG. 13 and FIG. 14 are diagrams illustrating examples of graph graphic drawing of a network device that has been subjected to graph graphic arrangement processing according to the third embodiment. The graph diagram of the network device shown in FIG. 13 is a node (hereinafter referred to as a PC) consisting of 11 personal computer symbol images having the same size, and a node consisting of the symbol images of three servers having a size larger than the PC (hereinafter referred to as PC). The component includes a PC (hereinafter referred to as a server) and a node (hereinafter referred to as a router) composed of symbol images of two routers smaller in size than the PC and the server. Also in this embodiment, similarly to the second embodiment, the nodes are arranged so that the forces acting between the nodes are in an equilibrium state.

ルータと11台のPCとの各接続で働く力が平衡状態にあり、各PCのノードサイズは略同一である。これにより、図13に示す例では、ルータとPCとの間の各アークの長さは略等しく、ルータを中心にして放射状かつ点対称に11台のPCが接続する配置を含んでいる。このように配置することにより、PCごとにルータとの距離が異なる場合と比較して、ルータ、PCの重なりやアークの交差を等を防ぐことができ、各段に見やすいグラフ図形の描画を実現できる。   The forces acting on each connection between the router and the 11 PCs are in an equilibrium state, and the node size of each PC is substantially the same. Thus, in the example shown in FIG. 13, the length of each arc between the router and the PC is substantially equal, and includes an arrangement in which 11 PCs are connected radially and point-symmetrically around the router. By arranging in this way, it is possible to prevent routers and PCs from overlapping and arcs to be crossed compared to the case where the distance from the router varies from PC to PC, and it is possible to draw graph figures that are easy to see at each stage. it can.

また、ルータと3台のサーバとの各接続で働く力が平衡状態にあり、各サーバのノードサイズは略同一である。このように配置することにより、図13に示すように、ルータと3つのサーバの各接続に対応するアークの長さはそれぞれ等しくなる。つまり、サーバ毎にルータとの間の距離が異なることに起因するグラフ図形の見づらさを解消できる。   Further, the forces acting on each connection between the router and the three servers are in an equilibrium state, and the node sizes of the servers are substantially the same. By arranging in this way, as shown in FIG. 13, the arc length corresponding to each connection between the router and the three servers becomes equal. That is, it is possible to eliminate the difficulty in viewing the graph figure due to the difference in the distance from the router for each server.

図14に示すネットワーク機器のグラフ図形は、サイズの同じシンボル画像のノードである9台のPCと、PCよりサイズが大きいシンボル画像のノードであるシンボル画像である3台のサーバと、PC及びサーバよりサイズの小さいノードに該当するシンボル画像である2台のルータと、サイズがルータより大きくPCより小さいシンボル画像のノードであるハブと、PCと同程度の大きさのシンボル画像であるノードとを構成要素として含んでいる。   The graph diagram of the network device shown in FIG. 14 includes nine PCs that are nodes of the same symbol image, three servers that are symbol images that are nodes of a symbol image larger than the PC, and the PC and server. Two routers that are symbol images corresponding to a node having a smaller size, a hub that is a node of a symbol image that is larger than the router and smaller than a PC, and a node that is a symbol image of the same size as a PC It is included as a component.

図14に示す例では、図中手前のハブと4台のPCとの接続に働く力は平衡状態であることから、ハブと各PC間のアークの長さが略等しい配置になる。また、当該ハブに接続するルータにそれぞれ接続する3台のPCも、ルータとの接続に働く力は平衡状態であるので、ルータと3台の各PC間のアークの長さが略等しくなる。さらに、このルータに逐次接続するルータには2台のPCが同様に接続しており、ルータとPCとの間におけるアークの長さは略等しい配置となる。このように配置することで、ハブやルータ、PC毎にの間の距離が異なる場合に比べて、ハブ、ルータ、PCの重なり等を防ぐことができる。これにより、見やすいグラフ図形の描画を実現できる。   In the example shown in FIG. 14, the force acting on the connection between the front hub and the four PCs in the figure is in an equilibrium state, so the arc length between the hub and each PC is substantially equal. In addition, since the three PCs connected to the router connected to the hub are in equilibrium with each other, the forces acting on the connection to the router are in a balanced state, so that the arc lengths between the router and each of the three PCs are substantially equal. Further, two PCs are similarly connected to the router that is sequentially connected to the router, and the arc length between the router and the PC is substantially equal. By arranging in this way, it is possible to prevent the hubs, routers, and PCs from overlapping each other compared to the case where the distances between the hubs, routers, and PCs are different. Thereby, it is possible to realize easy-to-see graph drawing.

なお、図13及び図14におけるノード(各ネットワーク機器のシンボル画像)にネットワーク機器名やアークにリンクの情報等を表示すると、より一層わかりやすい図解となる。   When the network device name and the link information etc. are displayed on the arc in the nodes (symbol images of the respective network devices) in FIGS. 13 and 14, the illustration becomes even easier to understand.

以上のように、この実施の形態3によれば、ネットワーク機器監視装置10におけるグラフ図形配置部19が、監視対象のネットワーク機器をノードとするグラフ図形の配置にあたり、ノード間の距離の設定目標値と、対応する実際のノード間距離との差に基づいてノード間に働く力を定義し、図形配置の対象となるノード間に働く力が平面配置上でバランスするようにノード配置の変更を逐次的に行うことにより、ネットワーク上のネットワーク機器の接続構造が視認し易い、配置を実現することができる。   As described above, according to the third embodiment, the graph figure placement unit 19 in the network device monitoring apparatus 10 places the graph figure with the monitored network device as a node, and sets the target distance value between the nodes. And the corresponding actual node-to-node distance, define the force that acts between the nodes, and sequentially change the node placement so that the force that acts between the nodes that are subject to graphic placement is balanced on the planar placement By doing so, it is possible to realize an arrangement in which the connection structure of network devices on the network is easily visible.

また、上記実施の形態3によれば、評価関数Fの値に対するノード間の距離の設定目標値と、対応する実際のノード間距離との相関の寄与率を、ノード間の距離の設定目標値又はノード間のグラフ理論上の距離又はノード間距離についての減少傾向にあるような関数を評価関数とするので、ネットワーク上のネットワーク機器間の接続に働く力Fの平衡に配慮しつつ、局所的なネットワーク機器間の接続に働く力Fが平衡なグラフ図形配置を行うことができる。   Further, according to the third embodiment, the contribution ratio of the correlation between the set target value of the distance between the nodes with respect to the value of the evaluation function F and the corresponding actual distance between the nodes is set as the set target value of the distance between the nodes. Alternatively, since the function that tends to decrease with respect to the graph theoretical distance between nodes or the distance between nodes is used as the evaluation function, locality is considered while considering the balance of the force F acting on the connection between network devices on the network. It is possible to perform graph graphic arrangement in which force F acting on connection between various network devices is balanced.

さらに、この実施の形態3によれば、評価関数Fijの値に対するノードi,j間の理想距離eijと実際のノードi,j間の距離dijとの相関の寄与率f(Iij)を、ノードi,j間のグラフ理論上の距離Iij及びノードi,j間の理想距離eijに関して減少傾向がある関数としたので、ノードi,j間のグラフ理論上の距離Iijが離れる程に、評価関数Fijの値に占める、理想距離eijと実際の距離dijとの相関を表す関数値(例えば、理想距離eijと実際の距離dijとの誤差)の相対的な大きさを小さくすることができ、また、ノード同士が接近しすぎて重なることを少なくすることができる。 Furthermore, according to the third embodiment, the evaluation function F ij of nodes for values i, actual node i to the ideal distance e ij between j, the contribution rate of the correlation between the distance d ij between j f (I ij ) Is a function that tends to decrease with respect to the graph theoretical distance I ij between the nodes i and j and the ideal distance e ij between the nodes i and j, the graph theoretical distance I ij between the nodes i and j. enough to leaves account the value of the evaluation function F ij, relative function values representing the correlation between the actual distance d ij and the ideal distance e ij (e.g., an error between the actual distance d ij and the ideal distance e ij) It is possible to reduce the overall size, and it is possible to reduce the overlapping of the nodes that are too close to each other.

実施の形態4.
本実施の形態4は、上記実施の形態1、2によるグラフ図形の配置方法をコミュニティWebサイト(Social Network Service)のサーバ装置に適用することにより、当該サイトを利用するユーザの端末を交友関係等の所定の関係に対応付けてグラフ図形として配置、描画するものである。
Embodiment 4 FIG.
In the fourth embodiment, the graph graphic arrangement method according to the first and second embodiments is applied to a server device of a community website (Social Network Service), so that a user terminal using the site can have a friendship relationship or the like. The graph is arranged and drawn in association with the predetermined relationship.

実施の形態4によるサーバ装置は、上記実施の形態1の図1で示したグラフ図形配置装置の構成を含み、グラフ図形配置部4が上記実施の形態1、上記実施の形態2又は上記実施の形態3のいずれかに示したグラフ図形の配置処理を実行する。また、グラフ図形描画部6が、グラフ図形配置部4により配置決定されたグラフ図形データをWeb用のデータに変換する機能を有する。さらに、グラフデータ記憶部7は、コミュニティWebサイトを利用する各ユーザに対応付けたシンボル画像及びその交友関係等のシンボル画像間の接続を規定する所定の関係が記述されたグラフ図形データを記憶している。   The server device according to the fourth embodiment includes the configuration of the graph graphic arrangement device shown in FIG. 1 of the first embodiment, and the graph graphic arrangement unit 4 is the first embodiment, the second embodiment, or the first embodiment. The graphic figure arrangement process shown in any one of the forms 3 is executed. In addition, the graph graphic drawing unit 6 has a function of converting the graph graphic data determined by the graph graphic arranging unit 4 into Web data. Further, the graph data storage unit 7 stores graph graphic data in which a symbol image associated with each user who uses the community website and a predetermined relationship that defines a connection between the symbol images such as a friendship relationship are described. ing.

このグラフ図形配置部4やグラフ図形描画部6を含む上記実施の形態1、上記実施の形態2又は上記実施の形態3のいずれかに示したグラフ図形の配置、描画、編集に必要な構成要素は、例えば、本発明の趣旨に従うコミュニティWebサイトの交友関係表示プログラムを、実施の形態4によるサーバ装置を構成するコンピュータの演算処理装置に実行させてその動作を制御することにより、ソフトウエアとハードウエアとが協働した具体的な手段として実現することができる。   Components required for the placement, drawing, and editing of the graph figure shown in any of the first embodiment, the second embodiment, or the third embodiment, including the graph figure arrangement unit 4 and the graph figure drawing unit 6 For example, by executing a friendship relationship display program for a community website in accordance with the gist of the present invention on a computer processing unit constituting the server device according to the fourth embodiment and controlling its operation, the software and hardware It can be realized as a specific means in cooperation with the wear.

次に動作について説明する。
図15は、この発明の実施の形態4によるサーバ装置を実現するコミュニティWebサイトの交友関係表示プログラムの各処理モジュールを示す図であり、この図と図1を用いて詳細を説明する。
Next, the operation will be described.
FIG. 15 is a diagram showing each processing module of the friendship relationship display program of the community website that implements the server device according to the fourth embodiment of the present invention, and the details will be described with reference to this diagram and FIG.

処理モジュールAは、コミュニティWebサイトを管理するサーバ装置であるコンピュータに実行されることにより、図1中の管理部3、グラフ図形配置部4及びグラフデータ記憶部7における、グラフデータを抽出する処理を具現化する。例えば、ユーザ端末からの交友関係表示要求を入力装置1等を介して管理部3が入力すると、管理部3は、入力された要求に応じて、グラフ図形配置部4に処理を移行する。グラフ図形配置部4では、管理部3による制御の下、要求に応じたユーザのシンボル画像及びその交友関係に関係するシンボル画像間の接続構造を規定するグラフ図形データをグラフデータ記憶部7から抽出する。   The processing module A is executed by a computer, which is a server device that manages a community website, to extract graph data in the management unit 3, the graph graphic arrangement unit 4, and the graph data storage unit 7 in FIG. Embody. For example, when the management unit 3 inputs a friendship relationship display request from the user terminal via the input device 1 or the like, the management unit 3 shifts the processing to the graph graphic arrangement unit 4 in accordance with the input request. The graph graphic arrangement unit 4 extracts, from the graph data storage unit 7, graph graphic data that defines a connection structure between a symbol image of a user according to a request and a symbol image related to the friendship relationship under the control of the management unit 3. To do.

次に、処理モジュールBを、当該コミュニティWebサイトを管理するサーバ装置であるコンピュータが実行することにより、図1中の管理部3、グラフ図形配置部4及びグラフデータ記憶部7における、グラフ図形の配置処理が具現化される。例えば、上述のようにして、グラフデータ記憶部7から抽出したグラフ図形データを用い、グラフ図形配置部4が、管理部3による制御の下、上記実施の形態1、上記実施の形態2又は上記実施の形態3のいずれかに示したグラフ図形の配置処理を実行し、交友関係に応じた接続関係でユーザのシンボル画像であるノードの配置を自動的に決定する。グラフ図形配置部4により配置決定されたグラフ図形データは、グラフデータ記憶部7に記憶される。   Next, when the processing module B is executed by a computer that is a server device that manages the community website, the graph graphic in the management unit 3, the graph graphic arrangement unit 4 and the graph data storage unit 7 in FIG. An arrangement process is implemented. For example, as described above, the graph graphic data extracted from the graph data storage unit 7 is used, and the graph graphic arrangement unit 4 is controlled by the management unit 3 as described in the first embodiment, the second embodiment, or the above. The graph graphic arrangement process shown in any of the third embodiments is executed, and the arrangement of the nodes, which are the user's symbol images, is automatically determined by the connection relation according to the friendship relation. The graph graphic data determined by the graph graphic layout unit 4 is stored in the graph data storage unit 7.

これに続いて、処理モジュールCを、当該コミュニティWebサイトを管理するサーバ装置であるコンピュータが実行することにより、図1中の管理部3、グラフ図形描画部6及びグラフデータ記憶部7における、グラフ図形の描画処理が具現化される。例えば、グラフ図形描画部6が、上述のようにして配置決定されたグラフ図形データをグラフデータ記憶部7から読み出して、Webブラウザで表示可能なデータ形式に変換する。例えば、既存のマークアップ言語等に変換することが考えられる。   Subsequently, the processing module C is executed by a computer that is a server device that manages the community Web site, so that the graphs in the management unit 3, the graph drawing unit 6, and the graph data storage unit 7 in FIG. Graphic drawing processing is realized. For example, the graph graphic drawing unit 6 reads out the graph graphic data determined as described above from the graph data storage unit 7 and converts it into a data format that can be displayed by the Web browser. For example, conversion to an existing markup language or the like can be considered.

この変換後のグラフ図形データを、出力装置8等を介して要求元のユーザ端末にダウンロードすることにより、ユーザ端末のWebブラウザにおいて当該コミュニティWebサイトの交友関係が表示される。この場合、上記実施の形態1、上記実施の形態2又は上記実施の形態3のいずれかに示したグラフ図形の配置処理によるため、各ユーザを示すノード間のアークの交差がなく、ノード同士の重なりもない見やすい表示が実現される。   By downloading the converted graph graphic data to the requesting user terminal via the output device 8 or the like, the friendship relationship of the community website is displayed on the web browser of the user terminal. In this case, there is no arc crossing between the nodes indicating each user because of the graph graphic arrangement process shown in any of the first embodiment, the second embodiment, or the third embodiment. An easy-to-view display without overlapping is realized.

図16は、実施の形態4によるグラフ図形配置処理を施したユーザ交友関係の描画例を示す図である。図16に示す例では、同じ大きさのシンボル画像をユーザに対応するノードとし、各ユーザ間のアークは交友関係を示している。図16に示すように、「Aさん」、「Tさん」、「Xさん」のノードは、自ノードにのみ接続するノード間が重ならない程度の長さのアークによりそれぞれ接続されている。   FIG. 16 is a diagram illustrating a drawing example of a user friendship relationship that has been subjected to the graph figure arrangement process according to the fourth embodiment. In the example shown in FIG. 16, symbol images having the same size are used as nodes corresponding to users, and arcs between users indicate friendship relationships. As shown in FIG. 16, the nodes “Mr. A”, “Mr. T”, and “Mr. X” are connected by arcs of such a length that the nodes connected only to the own node do not overlap each other.

「Tさん」を示すノードにのみ接続する、「Fさん」、「Gさん」、「Hさん」、「Iさん」、「Jさん」、「Kさん」、「Uさん」、「Vさん」、「Wさん」は、それぞれ同じ長さのアークにより「Tさん」のノードを中心として放射状に接続して略点対称に配置されている。
また、「Aさん」のノードにのみ接続する、「Bさん」、「Dさん」、「Eさん」はそれぞれ同じ長さのアークにより「Aさん」のノードを中心に放射状に接続しているが、「Hさん」のノードに近い「Cさん」のノードについては、「Bさん」、「Dさん」、「Eさん」より短いアークで「Aさん」に接続している。
さらに、「Xさん」のノードにのみ接続する、「Lさん」、「Yさん」はそれぞれ同じ長さのアークにより「Tさん」のノードを中心に放射状に接続しているが、「Wさん」のノードに近い「Zさん」のノードについては、「Lさん」、「Yさん」より短いアークで「Xさん」に接続している。
Connect only to the node indicating "T", "F", "G", "H", "I", "J", "K", "U", "V" “Mr. W” and “Mr. W” are arranged in a substantially point-symmetric manner by connecting them radially around the “Mr. T” node by arcs of the same length.
In addition, “Mr. B”, “Mr. D”, and “Mr. E”, which are connected only to the node “Mr. A”, are connected to each other in a radial manner around the node “Mr. However, the node “Mr. C” close to the node “Mr. H” is connected to “Mr. A” with an arc shorter than “Mr. B”, “Mr. D”, and “Mr. E”.
Furthermore, “Mr. L” and “Mr. Y”, which are connected only to the node “Mr. X”, are connected radially around the node “Mr. T” by arcs of the same length. The node of “Mr. Z” close to the node of “Mr.” is connected to “Mr. X” by an arc shorter than “Mr. L” and “Mr. Y”.

本発明によるグラフ図形配置部は、アーク両端の各ノードに接続されるノードの大きさに関して増加傾向を示す算定式を用いて、各ノード間の距離の設定目標値を算出し、算出されたノード間距離の設定目標値に基づいて、各ノードの配置を非階層的に決定する。このため、図16に示すように、ノードの大きさにかかわらずアークの交差やノードの重なりをできるだけ防ぐことができ、見やすいグラフ図形の描画を実現することができる。   The graph figure arrangement unit according to the present invention calculates a set target value of the distance between each node using a calculation formula indicating an increasing tendency with respect to the size of the node connected to each node at both ends of the arc, and calculates the calculated node Based on the set target value of the inter-distance, the arrangement of each node is determined non-hierarchically. Therefore, as shown in FIG. 16, arc crossing and node overlap can be prevented as much as possible regardless of the size of the node, and easy-to-see graph graphics can be drawn.

また、グラフ図形から複数のアークを介して接続される2つのノード間を多重枝として取り除き、これらノード間の距離について設定目標値を算出するので、図16に示すように、各ユーザのノード全体としてバランスのとれた配置がなされ、見やすい交友関係表示を実現することができる。   Further, since two nodes connected via a plurality of arcs are removed from the graph figure as multiple branches, and the set target value is calculated for the distance between these nodes, as shown in FIG. As a result, a well-balanced arrangement is made, and an easy-to-see friendship display can be realized.

さらに、ノード間の距離の設定目標値と、対応する実際のノード間距離との相関を表す関数値の、配置対象のグラフ図形における全てのノードについての和を評価関数として定義し、この評価関数の値が平面配置上で小さくなるようにノード配置の変更を逐次的に行うことにより、各ユーザのノードとその交友関係に応じた接続構造の特徴に応じた配置を実現することができる。   Further, the sum of all function nodes representing the correlation between the set target value of the distance between the nodes and the corresponding actual distance between the nodes is defined as an evaluation function. By sequentially changing the node arrangement so that the value of becomes smaller on the plane arrangement, it is possible to realize an arrangement according to the characteristics of the connection structure corresponding to each user's node and its friendship.

また、上記実施の形態2、3のように、評価関数Fの値に対するノード間の距離の設定目標値と、対応する実際のノード間距離との相関の寄与率を、ノード間の距離の設定目標値又はノード間のグラフ理論上の距離又はノード間距離についての減少傾向にあるような関数を評価関数とすれば、交友関係表示するユーザ全体の各接続に働く力Fの平衡に配慮しつつ、ユーザを示すノード間の局所的な接続に働く力Fが平衡なノード配置を行うことができる。   Further, as in the second and third embodiments, the contribution ratio of the correlation between the target value of the distance between the nodes with respect to the value of the evaluation function F and the corresponding actual distance between the nodes is set as the distance between the nodes. If the function that tends to decrease with respect to the target value or the distance between nodes in the graph theory or the distance between nodes is used as the evaluation function, the balance of the force F acting on each connection of the whole user displaying the friendship relationship is taken into consideration. The node arrangement in which the force F acting on the local connection between the nodes indicating the user is balanced can be performed.

上述のような配置方法により、例えば「Aさん」のノードにのみ接続する、「Bさん」、「Dさん」、「Eさん」はそれぞれ同じ長さのアークで「Aさん」に接続するが、「Hさん」のノードに近い「Cさん」のノードについては、互いに重ならないように「Bさん」、「Dさん」、「Eさん」より短いアークで「Aさん」に接続するように配置される。   According to the arrangement method as described above, for example, “Mr. B”, “Mr. D”, and “Mr. E” are connected to “Mr. A” with arcs of the same length. , “Mr. C” node close to “Mr. H” node should be connected to “Mr. A” with an arc shorter than “Mr. B”, “Mr. D”, and “Mr. E” so as not to overlap each other. Be placed.

なお、図16に示すように、ユーザを表すノードに各ユーザ名を表記するようにしてもよく、各ノードに用いるシンボル画像として個人のホームページの画像イメージを使用するようにしても良い。これにより、コミュニティWebサイトの交友関係をわかりやすく、視覚的に表現することができる。   As shown in FIG. 16, each user name may be written on a node representing a user, and an image image of a personal homepage may be used as a symbol image used for each node. Thereby, the friendship relationship of the community website can be easily and visually expressed.

以上のように、この実施の形態4によれば、コミュニティWebサイトを管理するサーバ装置におけるグラフ図形配置部が、コミュニティWebサイトのユーザをノードとするグラフ図形の配置にあたり、グラフ図形中のアーク両端の各ノードに接続されるノードの大きさと相関を規定する算定式、特にアーク両端の各ノードに接続されるノードの大きさに関して増加傾向を示す算定式を用いて各ノード間の距離の設定目標値を算出し、算出されたノード間距離の設定目標値に基づいて、各ノードの配置を非階層的に決定するので、各ユーザに該当するノードの大きさに応じてグラフ図形が配置され、アークの交差やノードの重なりが少ない態様でユーザの交友関係を表示することができる。   As described above, according to the fourth embodiment, when the graph graphic placement unit in the server device managing the community website places the graph figure having the user of the community website as a node, both ends of the arc in the graph figure The target for setting the distance between each node using a calculation formula that prescribes the size and correlation of the nodes connected to each node, particularly a calculation formula that shows an increasing tendency with respect to the size of the nodes connected to each node at both ends of the arc Since the value is calculated, and the arrangement of each node is determined non-hierarchically based on the calculated setting target value of the distance between nodes, the graph figure is arranged according to the size of the node corresponding to each user, It is possible to display user friendships in such a manner that there are few arc crossings and node overlaps.

また、上記実施の形態4によれば、コミュニティWebサイトのユーザをノードとするグラフ図形の配置にあたり、評価関数Fの値に対するノード間の距離の設定目標値と、対応する実際のノード間距離との相関の寄与率を、ノード間の距離の設定目標値又はノード間のグラフ理論上の距離又はノード間距離についての減少傾向にあるような関数を評価関数とすることで、コミュニティWebサイトのユーザを表すノード間に働く力Fの平衡に配慮しつつ、局所的なノード間に働く力Fが平衡なグラフ図形配置が行われ、見やすい交友関係表示を実現できる。   In addition, according to the fourth embodiment, in the arrangement of the graph figure having the user of the community website as a node, the set target value of the distance between the nodes with respect to the value of the evaluation function F, the corresponding actual inter-node distance, By using a function that tends to decrease the target value of the distance between nodes as a setting target value of the distance between nodes, the distance in the graph theory between nodes, or the distance between nodes as an evaluation function, the user of the community website Considering the balance of the force F acting between the nodes representing the graph graphic arrangement in which the forces F acting between the local nodes are balanced, an easy-to-see friendship display can be realized.

さらに、上記実施の形態4によれば、コミュニティWebサイトのユーザをノードとするグラフ図形の配置にあたり、ノード間の距離の設定目標値と、対応する実際のノード間距離との相関を表す関数値の、配置対象のグラフ図形における全てのノードについての和を評価関数として定義し、この評価関数の値が平面配置上で小さくなるようにノード配置の変更を逐次的に行うので、ユーザ間の交友関係等の所定のノード間の関係に基づく接続構造の特徴に応じてグラフ図形が配置され、見やすい交友関係表示を実現できる。   Furthermore, according to the fourth embodiment, in the arrangement of the graph figure having the user of the community website as a node, the function value representing the correlation between the set target value of the distance between the nodes and the corresponding actual distance between the nodes. Since the sum of all nodes in the graph figure to be arranged is defined as an evaluation function, and the node arrangement is sequentially changed so that the value of this evaluation function becomes small on the plane arrangement, A graph figure is arranged according to the characteristics of the connection structure based on the relationship between predetermined nodes such as a relationship, and an easy-to-read friendship display can be realized.

この発明の実施の形態1によるグラフ図形配置装置の構成を示すブロック図である。It is a block diagram which shows the structure of the graph figure arrangement | positioning apparatus by Embodiment 1 of this invention. 実施の形態1のグラフ図形処理装置によるグラフ図形中の多重枝、自己閉路を取り除く処理の流れを示すフローチャートである。3 is a flowchart showing a flow of processing for removing multiple branches and self-closing in a graph figure by the graph figure processing apparatus according to the first embodiment. 実施の形態1のグラフ図形配置部によるグラフ図形配置の流れを示すフローチャートである。4 is a flowchart showing a flow of graph graphic arrangement by the graph graphic arrangement unit of the first embodiment. 実施の形態1のグラフ図形配置装置によるグラフ図形編集処理の流れを示すフローチャートである。4 is a flowchart illustrating a flow of graph graphic editing processing by the graph graphic arrangement device according to the first embodiment. グラフ図形の描画例を示す図である。It is a figure which shows the example of a graph figure drawing. グラフ図形の描画の他例を示す図である。It is a figure which shows the other example of drawing of a graph figure. 実施の形態2のグラフ図形配置部によるグラフ図形配置の流れを示すフローチャートである。10 is a flowchart showing a flow of graph graphic arrangement by the graph graphic arrangement unit of the second embodiment. 実施の形態2によるグラフ図形配置処理を施したグラフ図形の描画例を示す図である。FIG. 10 is a diagram illustrating a drawing example of a graph figure that has been subjected to the graph figure arrangement process according to the second embodiment. 実施の形態2によるグラフ図形配置処理を施したグラフ図形の描画例を示す図である。FIG. 10 is a diagram illustrating a drawing example of a graph figure that has been subjected to the graph figure arrangement process according to the second embodiment. 実施の形態2によるグラフ図形配置処理を施したグラフ図形の描画例を示す図である。FIG. 10 is a diagram illustrating a drawing example of a graph figure that has been subjected to the graph figure arrangement process according to the second embodiment. この発明の実施の形態3によるグラフ図形配置装置の構成を示すブロック図である。It is a block diagram which shows the structure of the graph figure arrangement | positioning apparatus by Embodiment 3 of this invention. 実施の形態3のグラフ図形配置装置によるグラフ図形の配置編集処理の流れを示すフローチャートである。12 is a flowchart showing a flow of graph graphic layout editing processing by the graph graphic layout device of the third embodiment. 実施の形態3によるグラフ図形配置処理を施したネットワーク機器のグラフ図形の描画例を示す図である。FIG. 10 is a diagram illustrating a graph graphic drawing example of a network device that has been subjected to graph graphic arrangement processing according to the third embodiment. 実施の形態3によるグラフ図形配置処理を施したネットワーク機器のグラフ図形の描画例を示す図である。FIG. 10 is a diagram illustrating a graph graphic drawing example of a network device that has been subjected to graph graphic arrangement processing according to the third embodiment. この発明の実施の形態4によるサーバ装置を実現するコミュニティWebサイトの交友関係表示プログラムの各処理モジュールを示す図である。It is a figure which shows each process module of the friendship display program of the community Web site which implement | achieves the server apparatus by Embodiment 4 of this invention. 実施の形態4によるグラフ図形配置処理を施したユーザ交友関係の描画例を示す図である。It is a figure which shows the example of drawing of the user friendship relationship which performed the graph figure arrangement | positioning process by Embodiment 4. FIG.

符号の説明Explanation of symbols

1,9 入力装置、2 処理装置、3 管理部、4,19 グラフ図形配置部、5,18 グラフ図形編集部、6 グラフ図形描画部、7,22 グラフデータ記憶部、8,11 出力装置、10 ネットワーク機器監視装置、12 システム管理部、13 ネットワーク機器データ管理部、14 ネットワーク機器データ出力部、15 ネットワーク機器データ処理部、16 ネットワーク機器データ記憶部、17 グラフエディタ管理部、20 グラフ図形出力部、21 グラフデータ抽出部。   DESCRIPTION OF SYMBOLS 1,9 Input device, 2 Processing apparatus, 3 Management part, 4,19 Graph figure arrangement part, 5,18 Graph figure edit part, 6 Graph figure drawing part, 7,22 Graph data storage part, 8,11 Output device, DESCRIPTION OF SYMBOLS 10 Network equipment monitoring apparatus, 12 System management part, 13 Network equipment data management part, 14 Network equipment data output part, 15 Network equipment data processing part, 16 Network equipment data storage part, 17 Graph editor management part, 20 Graph figure output part , 21 Graph data extraction unit.

Claims (13)

グラフ図形配置部が、複数のノードと、これらのノード中、接続関係のあるノード間を結ぶ線として定義したアークとで構成されるグラフ図形をデータとして記憶するグラフデータ記憶部から前記グラフ図形を取り出し、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式から算定したノード間の距離の設定目標値に基づいて、各ノードの配置を非階層的に決定することにより、前記グラフ図形の配置を行うグラフ図形配置法。   The graph graphic arrangement unit stores the graph graphic from the graph data storage unit that stores, as data, a graph graphic composed of a plurality of nodes and an arc defined as a line connecting the nodes having connection relation among these nodes. By determining the placement of each node in a non-hierarchical manner based on the set target value of the distance between nodes calculated from a calculation formula that correlates with the size of the node connected to each node at both ends of the arc, A graph graphic arrangement method for arranging the graph graphic. グラフ図形配置部は、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式として、前記ノードの大きさに関して増加傾向がある関数を用いることを特徴とする請求項1記載のグラフ図形配置法。   The graph graphic arrangement unit uses a function having an increasing tendency with respect to the size of the node as a calculation formula correlated with the size of the node connected to each node at both ends of the arc. Graph shape placement method. グラフ図形配置部は、複数のアークを介して接続されるノード間の距離の設定目標値を、前記ノード間のパスを構成する各アークの両端のノード間の距離の設定目標値に基づいて算定することを特徴とする請求項1又は請求項2記載のグラフ図形配置法。   The graph figure arrangement unit calculates a set target value of the distance between nodes connected via a plurality of arcs based on the set target value of the distance between nodes at both ends of each arc constituting the path between the nodes. 3. The graphic pattern arrangement method according to claim 1 or 2, wherein: グラフ図形配置部は、ノード間の距離の設定目標値と、対応する実際のノード間距離との相関を表す関数の、全てのノードについての和を評価関数として用い、この評価関数の値が平面配置上で小さくなるようにノード配置の変更を逐次的に行うことを特徴とする請求項1から請求項3のうちのいずれか1項記載のグラフ図形配置法。   The graph figure placement unit uses the sum of all the nodes representing the correlation between the set target value of the distance between the nodes and the corresponding actual distance between the nodes as the evaluation function. 4. The graph graphic layout method according to claim 1, wherein the node layout is sequentially changed so as to be small on the layout. グラフ図形配置部は、ノード間の距離の設定目標値と、対応する実際のノード間の距離との差に基づいてノード間に働く力を定義した評価関数を用いて、図形配置の対象となるノード間に働く力が平面配置上で平衡状態になるようにノード配置の変更を逐次的に行うことを特徴とする請求項1から請求項3のうちのいずれか1項記載のグラフ図形配置法。   The graph graphic placement unit is the target of graphic placement using an evaluation function that defines the force acting between nodes based on the difference between the set target value of the distance between nodes and the corresponding distance between actual nodes. 4. The graphic figure arrangement method according to claim 1, wherein the node arrangement is sequentially changed so that the force acting between the nodes is in an equilibrium state on the planar arrangement. . グラフ図形配置部は、評価関数値に対するノード間の距離の設定目標値と、対応する実際のノード間の距離との相関の寄与率を、前記ノード間の距離の設定目標値又は前記対応する実際のノード間の距離の少なくとも一つに関して減少傾向がある関数としたことを特徴とする請求項4記載のグラフ図形配置法。   The graph graphic arrangement unit calculates the contribution ratio of the correlation between the set target value of the distance between the nodes to the evaluation function value and the corresponding distance between the actual nodes, the set target value of the distance between the nodes or the corresponding actual value. 5. The graph graphic arrangement method according to claim 4, wherein the graph graphic function is a function having a decreasing tendency with respect to at least one of the distances between the nodes. グラフ図形配置部は、評価関数値に対するノード間の距離の設定目標値と、対応する実際のノード間の距離との相関の寄与率を、前記ノード間の距離の設定目標値、前記ノード間のグラフ理論上の距離又は前記対応する実際のノード間の距離の少なくとも一つに関して減少傾向がある関数としたことを特徴とする請求項5記載のグラフ図形配置法。   The graph figure placement unit calculates the contribution ratio of the correlation between the target setting value of the distance between nodes to the evaluation function value and the corresponding distance between actual nodes, the target setting value of the distance between the nodes, and between the nodes. 6. The graph graphic arrangement method according to claim 5, wherein the graph graphic arrangement method is a function having a decreasing tendency with respect to at least one of a theoretical distance and a corresponding distance between actual nodes. 複数のノードと、これらのノード中、接続関係のあるノード間を結ぶ線として定義したアークとで構成されるグラフ図形をデータとして記憶するグラフデータ記憶部から前記グラフ図形を取り出し、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式から算定したノード間の距離の設定目標値に基づいて、各ノードの配置を非階層的に決定することにより、前記グラフ図形の配置を行うグラフ図形配置部としてコンピュータを機能させるプログラム。   The graph graphic is taken out from a graph data storage unit that stores as a data a graph graphic composed of a plurality of nodes and an arc defined as a line connecting the nodes having connection relation among these nodes, Based on the set target value of the distance between nodes calculated from a calculation formula correlated with the size of the node connected to each node, the arrangement of the graph figure is determined by determining the arrangement of each node in a non-hierarchical manner. A program that causes a computer to function as a graph figure placement unit to be performed. グラフ図形配置部は、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式として、前記ノードの大きさに関して増加傾向がある関数を用いることを特徴とする請求項8記載のプログラム。   9. The graph graphic arrangement unit uses a function having an increasing tendency with respect to the size of the node as a calculation formula correlated with the size of the node connected to each node at both ends of the arc. program. グラフ図形配置部は、複数のアークを介して接続されるノード間の距離の設定目標値を、前記ノード間のパスを構成する各アークの両端のノード間の距離の設定目標値に基づいて算定することを特徴とする請求項8又は請求項9記載のプログラム。   The graph figure arrangement unit calculates a set target value of the distance between nodes connected via a plurality of arcs based on the set target value of the distance between nodes at both ends of each arc constituting the path between the nodes. 10. The program according to claim 8 or 9, wherein: 複数のノードと、これらのノード中、接続関係のあるノード間を結ぶ線として定義したアークとで構成されるグラフ図形をデータとして記憶するグラフデータ記憶部と、
前記グラフデータ記憶部から前記グラフ図形を取り出し、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式から算定したノード間の距離の設定目標値に基づいて、各ノードの配置を非階層的に決定することにより、前記グラフ図形の配置を行うグラフ図形配置部とを備えたグラフ図形配置装置。
A graph data storage unit that stores, as data, a graph figure composed of a plurality of nodes and an arc defined as a line connecting the nodes having a connection relationship among these nodes;
Taking out the graph figure from the graph data storage unit, and arranging each node based on a set target value of the distance between nodes calculated from a calculation formula correlated with the size of the node connected to each node at both ends of the arc A graph graphic arrangement apparatus comprising: a graph graphic arrangement unit that arranges the graph graphic by determining non-hierarchically.
グラフ図形配置部は、アークの両端の各ノードに接続されるノードの大きさと相関がある算定式として、前記ノードの大きさに関して増加傾向がある関数を用いることを特徴とする請求項11記載のグラフ図形配置装置。   The graph graphic arrangement unit uses a function having an increasing tendency with respect to the size of the node as a calculation formula correlated with the size of the node connected to each node at both ends of the arc. Graph graphic placement device. グラフ図形配置部は、複数のアークを介して接続されるノード間の距離の設定目標値を、前記ノード間のパスを構成する各アークの両端のノード間の距離の設定目標値に基づいて算定することを特徴とする請求項11又は請求項12記載のグラフ図形配置装置。   The graph figure arrangement unit calculates a set target value of the distance between nodes connected via a plurality of arcs based on the set target value of the distance between nodes at both ends of each arc constituting the path between the nodes. The graph graphic arrangement device according to claim 11 or 12, characterized in that:
JP2006055134A 2006-03-01 2006-03-01 Graph graphic arrangement method, program and apparatus Expired - Fee Related JP4566928B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006055134A JP4566928B2 (en) 2006-03-01 2006-03-01 Graph graphic arrangement method, program and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006055134A JP4566928B2 (en) 2006-03-01 2006-03-01 Graph graphic arrangement method, program and apparatus

Publications (2)

Publication Number Publication Date
JP2007233728A true JP2007233728A (en) 2007-09-13
JP4566928B2 JP4566928B2 (en) 2010-10-20

Family

ID=38554260

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006055134A Expired - Fee Related JP4566928B2 (en) 2006-03-01 2006-03-01 Graph graphic arrangement method, program and apparatus

Country Status (1)

Country Link
JP (1) JP4566928B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010262646A (en) * 2009-04-30 2010-11-18 Internatl Business Mach Corp <Ibm> Method and apparatus of animation planning for dynamic graph
JP2017151780A (en) * 2016-02-25 2017-08-31 富士通株式会社 Plotting method, plotting device and plotting program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09134440A (en) * 1995-11-09 1997-05-20 Mitsubishi Electric Corp Method and device for arranging graphic
JP2002312803A (en) * 2001-04-06 2002-10-25 Internatl Business Mach Corp <Ibm> Graphic data visualizing device, graphics generating method, program, and storage medium
JP2003016465A (en) * 2001-06-19 2003-01-17 Internatl Business Mach Corp <Ibm> Graphics image generating device, and its method and program
JP2004234654A (en) * 2003-01-30 2004-08-19 Agilent Technol Inc System and method for providing visualized expression of network diagram

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09134440A (en) * 1995-11-09 1997-05-20 Mitsubishi Electric Corp Method and device for arranging graphic
JP2002312803A (en) * 2001-04-06 2002-10-25 Internatl Business Mach Corp <Ibm> Graphic data visualizing device, graphics generating method, program, and storage medium
JP2003016465A (en) * 2001-06-19 2003-01-17 Internatl Business Mach Corp <Ibm> Graphics image generating device, and its method and program
JP2004234654A (en) * 2003-01-30 2004-08-19 Agilent Technol Inc System and method for providing visualized expression of network diagram

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010262646A (en) * 2009-04-30 2010-11-18 Internatl Business Mach Corp <Ibm> Method and apparatus of animation planning for dynamic graph
JP2017151780A (en) * 2016-02-25 2017-08-31 富士通株式会社 Plotting method, plotting device and plotting program

Also Published As

Publication number Publication date
JP4566928B2 (en) 2010-10-20

Similar Documents

Publication Publication Date Title
JP6516025B2 (en) Information processing method and information processing apparatus
US8963961B2 (en) Fractal whiteboarding
US10346005B2 (en) Computer-implemented method for determining exploded paths of an exploded view of an assembly of three-dimensional modeled objects
CN107077274B (en) Method and apparatus for moving context tags in a strip
US8856766B2 (en) Generating layouts for graphs of data flow applications
JP6043732B2 (en) System method and system for browsing heterogeneous map data
US9953443B2 (en) Interactive, adaptive level-of-detail in 2.5D treemaps
US20090293008A1 (en) Information Processing Device, User Interface Method, And Information Storage Medium
CN102957748A (en) Dynamic update method and system for three-dimensional scene
JP2007042108A (en) Computer execution method for hiding column of electronic table, system and program
Huang et al. WebOFDAV—navigating and visualizing the Web on-line with animated context swapping
EP2950274B1 (en) Method and system for generating motion sequence of animation, and computer-readable recording medium
US10777009B2 (en) Dynamically forming an immersive augmented reality experience through collaboration between a consumer and a remote agent
US20040032410A1 (en) System and method for generating a structured two-dimensional virtual presentation from less than all of a three-dimensional virtual reality model
CN111104474B (en) Method and device for constructing data map
US8756518B2 (en) Stack objects order traversal and manipulation
JP4566928B2 (en) Graph graphic arrangement method, program and apparatus
US10627984B2 (en) Systems, devices, and methods for dynamic virtual data analysis
WO2011001952A1 (en) Electronic function graph display device, coordinate acquisition device, electronic function graph display method, coordinate acquisition method, and program
US20100042938A1 (en) Interactive Navigation of a Dataflow Process Image
EP4083794B1 (en) Rendering of persistent particle trails for dynamic displays
EP3716091A1 (en) Method and apparatus for visualization of public welfare activities
CN104866266A (en) Crop character display method and device
US10078801B2 (en) System, method and software for representing decision trees
JP6721926B1 (en) Content search interface, interface display method, and social network service using these

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071017

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071022

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080627

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100630

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100727

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100804

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130813

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees