Interactive system and method for drawing graphs
3 claims: 1 independent, 2 dependent
- 1A method for interactively generating a graph having a plurality of nodes and links connecting the nodes comprising the steps of:(a) receiving a user input specifying locations for each of the plurality of nodes;(b) selecting at least one node;(c) receiving a user input specifying at least one visual organization feature to be applied to the at least one selected node;(d) adjusting locations of the plurality of nodes according to the visual organization feature;and (e) displaying the graph with the nodes at adjusted locations;characterized by : determining a set of virtual springs connecting each of the selected nodes to a position defined by the at least one visual organization feature;determining an at rest position for each of the nodes based upon the virtual springs.
26 paragraphs, as filed
Field of the Invention
0001The present invention relates to a method for interactively generating a graph. More particularly, it relates to an interactive, constraint-based graph-drawing method.
Background of the Invention
0002Most small graphs, such as those that appear in publications or presentations, are drawn with the aid of primitive commercial drawing tools, like Power-Point from Microsoft or Claris Draw. These drawing tools do not make it easy to introduce and maintain the exquisite symmetries, spacings and alignments that graphic designers typically utilize in their work. Typically, these tools merely allow the placement of nodes on a screen and connection lines between the nodes. The user can interactively move the nodes about on the screen in order to improve the visual appearance of the graph. Often, the user may also apply simple constraints to organize the nodes on the screen. For example, the user can select a set of nodes which are then aligned horizontally or vertically. However, the graph-drawing algorithms only apply the constraint once; if the user subsequently changes a node, the system does not automatically realign the nodes.
0003Other, more complicated systems use layout algorithms in order to set certain constraints or goals for the layout of a graph. These constraints or goals allow portions of the graph to be set automatically. Generally, graph-layout algorithms minimize specific fixed properties in order to improve the readability and aesthetic appearance of graphs. Such properties include maximization of display symmetry, minimizing edge crossings or edge bends, limiting edge lengths to be more uniform, and uniformly distributing nodes. However, minimization of these properties can be an extremely difficult computational problem. Thus, laying out graphs with such systems can be extremely long and tedious. Furthermore, even when the properties are easily minimized, an acceptable graph is not necessarily obtained. Primarily, this is because automated layouts do not consider what the user deems to be important. No specific layout structure is relevant to all types of graphs. Thus, the best layout depends upon the user's purpose for the graph, not universally relevant geometric properties of a display. In this regard, user input is extremely important.
0004Tyson R. Henry and Scott E. Hudson disclose a system in "Interactive Graph Layout", <u>Proceedings of the ACM Symposium on User Interface Software and Technology,</u> page 55 (November, 1991) for composing graph layouts which provide some automation of layout as well as user control. As disclosed in this article, the user interacts with the system to designate a hierarchy of layout algorithms. However, this system is intended for large graphs and is extremely complicated. It requires an understanding of the hierarchical relationship in setting algorithms. Although constraints have permanence, the final layout is not intuitively obvious from the constraints themselves. Since constraints are hierarchically arranged, the effects of some constraints will be modified or cancelled by the application of other constraints. Particularly, the permissible constraints appear to maximize certain distance to create uniformity in the graph. Sometimes for readability, the user would like disuniformity in a graph in order to emphasize certain areas.
0005Ed Dengler, Mark Friedell and Joe Marks, in "Constraint-Driven Diagram Layout", <u>Proceedings of the 1993 IEEE Symposium on Visual Languages,</u> pp 330-335 (August, 1993) disclose a system for using constraints in diagram layouts. This system is based upon the use of visual organization features (VOFs). VOFs are specific arrangements of related nodes in the diagram. The system in this article does not describe or presume where the VOFS come from. Rather, it is merely a system for producing a layout result based upon the nodes, edges and VOFS. The layout is optimized using a hybrid process of simulation and stochastic search in order to meet the constraints. Also, the spring constraints are applied in the incremental process in a specified order. The order is determined by the extent of restrictiveness of a constraint. This tries to prevent the incremental improvement approach from being trapped at local optimums. Also, in the Dengler et. al. approach, an initial layout is randomly selected. In order to provide improved performance, several different random initial locations can be used. The optimums obtained from each of the initial locations are compared to determine a global optimum in meeting the constraints.
0006Corey, Kosak, Joe Marks and Stuart Shieber disclose a method according to the preamble of Claim 1 in "Automating The Layout of Network Diagrams with Specified Visual Organization" IEEE (1994).
Summary of the Invention
0007The deficiencies of known systems for drawing small graphs exquisitely are substantially overcome by the present invention which relates to an interactive system for drawing graphs using constraints. In this system, constraints, nodes and edges are added or deleted from a displayed graph by the user through an interface. With each change, the system redetermines dynamically the position of the nodes and edges based upon the constraints. A generalized spring algorithm is used to enforce the constraints and provide locally optimum placement of the nodes with respect to all constraints. Furthermore, the present invention includes a small set of macro constraints which can be applied to the graph. These constraints are specifically designed for a graph drawing. They are "macro" in that they relate to complex relationships between nodes such as symmetry rather the simple geometric or topological relationships, such as tangency or connectedness relationships between specified points on nodes.
Brief Description of the Drawings
0008<dl id="dl0001"><dt>Fig. 1</dt><dd>illustrates computer hardware which can be used for implementing the interactive graph drawing system of the present invention.</dd><dt>Fig. 2</dt><dd>illustrates a user interface operable with the present invention.</dd><dt>Figs. 3A-3H</dt><dd>represent application of visual organization features.</dd><dt>Figs. 4A-4D</dt><dd>illustrate the steps in drawing a graph and applying constraints in accordance with the present invention.</dd><dt>Fig. 5</dt><dd>is a flowchart describing operation of the present invention.</dd></dl>
Detailed Description
0009Fig. 1 illustrates computer hardware 1 which can be used in implementing the present invention. A central processing unit (CPU) 10 processes program steps in order to implement the processes of the present invention. The CPU 10 can be any type or processor, such as those used in general purpose computers for executing instructions. A memory 20 stores the program steps and also stores the data used to represent the graphs in the present invention. The memory 20 can be any type of memory including RAM, ROM, CD-ROM, magnetic disks or other digital storage medium. A display 30 is connected to the CPU for interacting with the user in displaying the status of the graph. The display also represents the constraints which have been placed upon the graph as discussed below with respect to the user interface. A keyboard 40 and mouse 50 are connected to the CPU 10 for input from the user. As the user inputs information on the keyboard 40 or mouse 50, the CPU 10 processes the information and modifies the graph accordingly. A printer 60 may also be connected to the CPU in order to make a hard copy of de graph when complete.
0010Fig. 2 illustrates user interface 100 which can be used in executing the processes of the graph. The interface 100 represents a display of information as it would appear on the display 30 connected to CPU 10. The graph display area 110 of the user interface 100 displays the nodes and edges in the graph. The graph information in the memory 20 is processed by the CPU 10 in order to generate node locations and sizes, labels and edges to be displayed on the display 30. A set of buttons 120 are used for selecting and applying visual organization features (VOFS) to different nodes in the graph. A user would manipulate the mouse 50 in order to select specific nodes to which the VOF is to be applied. Once the nodes were selected, the user selects the appropriate VOF to apply by using the buttons 120 A second set of buttons 140 provide additional features in operating the interface. For example, selection button 141 is used to show the VOFs on the display and can be selected or deselected. Selection button 142 centers the graph on the display. Selection button 143 is used for adding or changing text labels. Selection button 144 is used to anchor nodes to specific locations. Section button 145 is used to delete nodes. Selection button 146 deletes all the VOFs which have been applied. Selection button 147 is used to clear selections of specified nodes. Nodes can be selected by clicking one of the mouse buttons when a cursor is located over the appropriate node. Of course, other mechanisms could be used for selecting and applying VOFs to the graph. For example, pull-down menus can be used in place of displayed selection buttons.
0011The VOFs corresponding to the selection elements in the first set of selection buttons 120 are illustrated in Figs. 3A-3H. Fig. 3A illustrates sequential placement of nodes. This can be selected either in the horizontal (selection button 131) or vertical (selection button 132) direction. In sequential placement, the nodes are selected in a specified order; when this constraint is satisfied the nodes are placed either horizontally or vertically in that order on the display. Fig. 3B illustrates clustering which causes all the selected nodes to be placed near to each other. Fig. 3C illustrates zoning (selection button 124). In zoning, the nodes are enclosed within a rectangle. All the nodes selected are maintained within the rectangle and any unselected nodes are maintained outside the rectangle. As illustrated in Fig. 3C, zoning can be used for different groups of nodes. Fig. 3D illustrates T-shaped constraints (selection button 129). In T-shape a center node is centered above or below an aligned row of other nodes. Alternatively, T-shape may place the centered node to the left or right of the row of nodes. Fig. 3E illustrates alignment in which all the nodes are placed along a single line in either the horizontal (selection button 121) or vertical (selection button 122) direction. Fig. 3F illustrates even spacing in which all the nodes are separated by a common distance in either the horizontal (selection button 125) or vertical (selection button 126) direction. Fig. 3G represents symmetry. With symmetry, all the nodes are positioned to be symmetrical about a defined axis identified by the user. The axis may be in either the horizontal (selection button 127) or vertical (selection button 128) direction. Finally, Fig. 3H illustrates a hub-shape design in which all the selected points are equidistant from a center node. The hub shape is selected by selection button number 130. If a center node is not selected by the user, all of the selected nodes become points on the circumference of a circle equidistant from an average position of the nodes.
0012Figs. 4A -4D illustrate operation of the system in designing a graph. As illustrated in Fig. 4A, a graph consists of a group of nodes and edges connecting the nodes. The user identifies the characteristics of the nodes, and the labels for the nodes. The nodes are automatically generated to have sufficient space for the label. In Fig. 4A, the nodes have been somewhat arbitrarily placed upon the screen. The user then applies different VOFs in order to improve the visual appearance of the graph. As illustrated in Fig. 4B, the user has applied three VOFs for horizontal alignment 210, 211, 212. A VOF is applied by selecting the nodes and selecting the VOF constraint.
0013Once the VOF constraint is selected, the system automatically readjusts the nodes in order to meet that constraint and any pre-existing constraints. Each upper-level constraint is converted into a set of specific forces acting on the nodes. A generalized spring algorithm is used for positioning the nodes. The generalized spring algorithm results in a locally optimum satisfaction of all of the applied VOF constraints. In the generalized spring algorithm, all the nodes are treated as having a set of springs connecting them to certain points to each other. The springs are defined in order to meet the constraint objective. For example, in an alignment VOF, a set of zero-length springs connect each node to a horizontal or vertical line through the centroid of the points. A cluster VOF places springs pair-wise among the nodes with a short rest-length spring.
0014The use of the spring algorithm allows placement without a firm adherence to the constraints. Each node is located based upon all of the forces (constraints) acting on it, and may not perfectly meet any one constraint. For example, without any other constraints, all of the selected nodes to which an alignment VOF has been applied lie upon the line through the centroid. As more constraints are applied, some nodes may not actually lie on the line trough the centroid, as forces from other constraints act on the nodes. However, the algorithm balances all the constraints acting on the nodes.
0015In the system of the present invention, the mass-spring model is continuously animated in order to illustrate the effect of the selected VOFs. Thus, as the user adds VOFs (or removes them), the nodes are moved about on the screen to reflect the changes. The user may also move nodes or groups of nodes in the display. As the nodes are moved, the system redetermines the positioning based upon an at-rest position for the springs. User movement of the nodes allows the user to aid the system in finding a better global solution to the constraint. The mass-spring simulation is used in order to create a cooperative effort between the user and the system to obtain a pleasing layout. The system interprets each of the user's changes and applies all of the constraints simultaneously in the best way possible. The user can then manipulate the nodes and constraints in order to obtain a desired effect while meeting certain specified visual constraints.
0016Fig. 4C illustrates three additional constraints, a vertical symmetry 220, vertical alignment 221, and hub shape 222. In the hub shape 222, no center node is selected. As discussed above, each of the elements is placed at an equidistant location from a derived centroid of all of the selected nodes. Fig. 4D illustrates the addition of three more VOFs to obtain the graph structure illustrated in Fig. 2. The three nodes on the left are subject to the cluster VOF illustrated by dot 230. The three nodes in the middle are subject to even spacing 231. Horizontal alignment is applied to the two nodes in the lower left.
0017Fig. 5 illustrates a flow diagram describing operation of the system for drawing graphs according to the present invention. Initially, the drawing interface is displayed (step 400). The data for the graph is retrieved from memory (step 405) and displayed (step 410), if a preexisting graph is being used. If preexisting graph is not used, then the user is presented with a blank screen within the display of the interface 100 at step 410. The system then waits user input (step 405). The user can perform several steps, including changing nodes, selecting nodes, and adding constraints.
0018When a user wishes to add a node (step 420) or text label, the user selects the position and types in the label (step 423). A predefined global constraint is that each node must be of sufficient size to fit the label. The user may interactively set a different size larger than the minimum (step 425). Each node includes a box surrounding the label and can include a different color inside the box than the background. A text label is similar to a node, but does not include the surrounding box. However, VOFs can be applied to text labels as well as nodes.
0019When the user selects a node (step 430), the node is highlighted (step 435) on the display. The nodes must be selected, using steps 430, 435, before a VOF can be applied. When a VOF is to be applied (step 440), an appropriate spring is attached to each of the selected nodes (steps 444, 446, 448). Once the springs are attached, the system calculates forces on the node (step 470) to determine a steady state for all of the springs representing all of the VOF constraints. As a steady state is being calculated, the display may be updated to present intermediate positions being moved into the steady state position (step 472). Alternatively, the graph may simply be redisplayed at the final position (step 476).
0020If a VOF is to be removed (steps 450, et seq.), the springs are removed and the same process (steps 470, 472, 476) is repeated to find the current steady state for the graph. Also, if a node is removed (step 460), the corresponding springs to that node are removed and the graph is redrawn. Removal of a node can affect positions of other nodes since springs may act between the nodes.
0021Having now described a few embodiments of the invention, it should be apparent to those skilled in the art that the foregoing is merely illustrative and not limiting, having been presented by way of example only. Numerous modifications and other embodiments are within the scope of one of ordinary skill in the art and are contemplated as falling within the scope of the invention as defined by the appended claims.
6 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| US5596691A | Cites | United States of America | Examiner |
| EP0645738A | Cites | European Patent Office (EPO) | – |
| US5596691A | Cites | United States of America | – |
| KOSAK C ET AL: "AUTOMATING THE LAYOUT OF NETWORK DIAGRAMS WITH SPECIFIED VISUAL ORGANIZATION" IEEE TRANSACTIONS ON SYSTEMS, MAN AND CYBERNETICS,US,IEEE INC. NEW YORK, vol. 24, no. 3, 1 March 1994 (1994-03-01), pages 440-454, XP000440877 ISSN: 0018-9472 | Non-patent | – | – |
| BREEN D E ET AL: "MESSAGE-BASED OBJECT-ORIENTED INTERACTION MODELING" PROCEEDINGS OF THE EUROPEAN COMPUTER GRAPHICS CONFERENCE,NL,AMSTERDAM, NORTH HOLLAND, vol. CONF. 10, 1989, pages 489-503, XP000143274 | Non-patent | – | – |
9 members in 5 offices; this record represents the family
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 932725 | United States of America | – | |
| 93272597 | United States of America | A |
Members9
| Document | Office | Kind | |
|---|---|---|---|
| EP0903693A2 | European Patent Office (EPO) | A2 | |
| JPH11144071A | Japan | A | |
| EP0903693A3 | European Patent Office (EPO) | A3 | |
| EP0903693B1This record | European Patent Office (EPO) | B1 | |
| AT250787T | Austria | T | |
| ATE250787T1 | Austria | T1 | |
| DE69818383D1 | Germany | D1 | |
| DE69818383T2 | Germany | T2 | |
| US6774899B1 | United States of America | B1 |
50 legal events, as 6 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Notification of lapseLapsedST | ST | FR | |
| Gb: european patent ceased through non-payment of renewal feeCeasedGBPC | GBPC | EP | |
| Application deemed withdrawn, or ip right lapsed, due to non-payment of renewal feeWithdrawnR119 | R119 | DE | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Register noted 'licences of right' (sect. 46/1977)746 | 746 | GB | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Patent lapsedLapsedMM4A | MM4A | IE | |
| No opposition filedOpposition26N | 26N | EP | |
| No opposition filed within time limitOppositionORIGINAL CODE: 0009261PLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: NO OPPOSITION FILED WITHIN TIME LIMITSTAA | STAA | EP | |
| Fr: translation filedET | ET | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Patent ceasedCeasedPL | PL | CH | |
| Nl: lapsed or annulled due to failure to fulfill the requirements of art. 29p and 29m of the patents actLapsedNLV1 | NLV1 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Corresponds to:REF | REF | EP | |
| European patents granted designating irelandGrantedFG4D | FG4D | IE | |
| European patent takes effect as a national patent in ch/liEP | EP | CH | |
| Designated contracting statesAK | AK | EP | |
| European patent grantedGrantedFG4D | FG4D | GB | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| (expected) grantORIGINAL CODE: 0009210GRAA | GRAA | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOS IGRAGRAH | GRAH | EP | |
| Despatch of communication of intention to grant a patentORIGINAL CODE: EPIDOS IGRAGRAH | GRAH | EP | |
| First examination report despatched17Q | 17Q | EP | |
| Designation fees paidAT BE CH CY DE DK ES FI FR GB GR IE IT LI LU MC NL PT SEAKX | AKX | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | EP | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | EP | |
| Designated contracting statesAK | AK | EP | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP |
Numbers
- Publication
- 0903693
- Application
- 981087885
Titles3
- German
- Interaktives System und Verfahren zur graphischen Darstellung
- English
- Interactive system and method for drawing graphs
- French
- Système et méthode interactif pour dessiner des graphes
Classification
- CPC, 1
- G06T11/26
- IPC, 2
- G06T11 20
- G06T11 80
Designated states19
- Contracting states, 19
- Austria
- Belgium
- Switzerland
- Cyprus
- Germany
- Denmark
- Spain
- Finland
- France
- United Kingdom
- Greece
- Ireland
- Italy
- Liechtenstein
- Luxembourg
- Monaco
- Netherlands (Kingdom of the)
- Portugal
- Sweden
