Biological networks can be large and complex, often consisting of different sub-networks or parts. Separation of networks into parts, network partitioning and layouts of overview and sub-graphs are of importance for understandable visualisations of those networks. This article presents *NetPartVis* to visualise non-overlapping clusters or partitions of graphs in the Vanted framework based on a method for laying out overview graph and several sub-graphs (partitions) in a coordinated, mental-map preserving way.

Keywords:
Network visualization;
Network analysis;
Mental map preservation;
Data clustering;
Graph drawing

Biological systems are characterised by complex, interwoven processes which comprise thousands of elements such as different genes, transcripts, proteins and metabolites. There are different representations of these processes, for example, textual descriptions or mathematical equation systems. Often biological systems are also represented as networks or graphs, see Figure 1. More details regarding the representation of biological networks as graphs, typical layout methods for different biological networks as well as generic layout methods can be found in articles such as [5], [6], [7], [8].

Biological networks can be separated or partitioned in different ways. For example, there exists a large collection of network analysis algorithms including many graph clustering methods [9], [10], partly also for the computation of non-overlapping clusters (partitions). It is also possible to separate the highly interconnected processes into different process classes, such as gene regulatory processes, protein interaction and metabolic processes among several other processes. Independent of the base for partitioning, the result are several non-overlapping clusters in the graph, as well as an overview graph where each node represents a cluster of the graph. This can be formalised as follows:

A (non-overlapping) clustered graph *C* = (*G*, *G _{O}*) consists of a base graph

Graphs are a mathematical concept for expressing structural relationships between elements of a certain system. An adequate layout of a graph helps to visually recognise its substructures. Layout and visualisation of clustered graphs (including graph structures such a planar clustered graphs and compound graphs) have been a research area in graph drawing for more than 30 years. Early work includes multi-level visualisation of clustered graphs [11], clustering and visual abstraction [14], structured layouts that separate zones for sub-graphs [15], orthogonal grid drawings of clustered graphs [16], drawing of compound graphs [17] and convex drawings of planar clustered graphs [18]. While there have been approaches to apply the planarisation concept to clustered graphs in order to minimise crossings [19], [20], the complexity of the general decision problem is still unknown [21], and current solutions for sub-classes of clustered graphs are far from practical application [22]. There also exist specific approaches for clustered biological networks such as the layout of biological compound graphs [23]. To some extent visualisation solutions which compare several graphs and build a comparison tree [24] can also be seen as layouts of clustered graphs.

Mental-map preserving layouts, introduced by Misue et al. [25], play an important role for the understanding of layout changes. The mental map of a graph is the abstract representation of this graph in the user’s brain which is then used to quickly navigate through the graph visualisation when changes occur. Here we will use the term *mental-map preserving* for coordinated views where the layout of the overview graph is easily visible in the spatial relations of the different clusters – the mental map regarding the overview graph is preserved.

Vanted [26] is an open source framework for the analysis and visualisation of biological networks and related experimental data. An Add-on mechanism allows for simple extension of the Vanted core, and several extensions exist, for instance, to compute network centralities [27] and to visualise fluxes in networks [28]. Vanted supports the visualisation of all kinds of biological networks and supports graphical standards for biological networks, in particular SBGN PD [29], SBGN ER [30] and SBGN AF [31]. A typical workflow in Vanted is presented in [32] – in this workflow metabolic maps in the SBGN standard are constructed, enriched with different kinds of ^{∗}omics data and exported to clickable websites. Other workflows can be found in [33].

The visualisation and exploration of networks is an important part of the Vanted workflow, therefore suitable methods to support these tasks are needed. Here we present *NetPartVis*, a method for layout and explorative visualisation of clustered graphs in Vanted which enables users to lay out an overview graph and the comprising sub-graphs (partitions) in a coordinated, mental-map preserving way. Due to the broad usability of such visualisations we decided to add *NetPartVis* to the main functionality of Vanted (core), therefore no additional loading of an Add-on is necessary.

Let *G* be the source (base) graph, *G _{O}* the overview graph (initially empty) and

The method for mental-map preserving visualisation of partitioned networks is based on the following data property: The source graph contains nodes that all have cluster IDs assigned. An overview graph and clustered sub-graphs are created from the source graph as follows:

- 1.
For each distinct cluster ID that is assigned to at least one node in the source graph

*G*, a new node representing a cluster is created in the overview graph*G*._{O} - 2.
For each edge in the source graph

*G*, a new edge connecting nodes in*G*is created, if and only if the cluster IDs of the source and target nodes of that edge in_{O}*G*are different. To avoid duplicated connections of nodes in the overview graph*G*, in case of an existing edge no new edge is created, but a dedicated edge attribute,_{O}*edgecount*, is increased by one. Thereby the information on the number of connections between clusters in the source graph*G*remains available in the overview graph*G*._{O} - 3.
The sub-graphs

*G*_{1}, … ,*G*are then defined as follows: For_{k}*i*= 1, …,*k*graph*G*contains all nodes with ID_{i}*i*and all edges, whose end nodes have cluster ID*i*.

To assign cluster IDs to nodes and edges in the source graph *G*, users are offered several options in Vanted. Users can

- 1.
Enter a cluster ID for the current selection of graph elements;

- 2.
Copy cluster IDs from the labels of the selected graph elements;

- 3.
Let cluster IDs be determined from connected sub-graphs;

- 4.
Sort graph elements into different clusters each with a distinct cluster ID, based on a given attribute, such as size, colour and position among others.

To make different clusters better distinguishable in the source graph *G* and in the overview graph *G _{O}*, nodes are colour-coded. Additionally, clusters can have their surrounding background also colour-coded. This can be particularly useful for very large clustered graphs. By changing the colour of the clusters, the colour of the corresponding nodes in the source and overview graphs, and the colour of the cluster backgrounds in the source graph, are modified, respectively. See Figure 3 for an example.

To account for the size of the clusters and the connections between different clusters, the nodes and edges of the overview graph *G _{O}* are modified:

- 1.
For all nodes of

*G*holds: The size of a node_{O}*n*in the overview graph is determined as described in the layout process below._{i} - 2.
The thickness of an edge in

*G*is used to visualise the number of connections between clusters in the source graph_{O}*G*and for each edge of*G*yields: The thickness of an edge is determined by its dedicated edge attribute_{O}*edgecount*.

The layout process consists of the following steps, illustrated in Figure 4:

- 1.
Layout sub-graphs

*G*_{1}, … ,*G*: Any layout method available can be used, alternatively the existing layouts can be kept unmodified to preserve the layout of the clustered sub-graphs. The result of this step is that each sub-graph is laid out. Finally for each graph_{k}*G*_{1}, … ,*G*the size of the bounding box is computed, and the size of the nodes_{k}*n*_{1}, … ,*n*of_{k}*G*is set to the size of the bounding box of the respective graph._{O} - 2.
Layout overview graph

*G*: Any layout method available can be used. As the size of the nodes in_{O}*G*represents the bounding box of the clustered sub-graphs, it is advisable that the layout takes node size into account or that the distance between nodes is large enough such that nodes do not overlap._{O} - 3.
The positions of the nodes

*n*_{1}, … ,*n*of_{k}*G*are used to layout_{O}*G*. The coordinates of nodes in*G*are based on the position of the nodes in*G*and an offset based on the layout of the graphs_{O}*G*_{1}, … ,*G*. For node_{k}*n*with cluster ID*i*the position is given by the position of*n*of_{i}*G*plus the position of_{O}*n*in*G*._{i}

Thanks to the framework implementation of Vanted, *NetPartVis* provides additional features to work with and analyse graphs, such as to select and modify nodes which belong to a given cluster or set of clusters. All discussed methods are available in Vanted (http://www.vanted.org).

We presented a method for visualising complex large graphs by graph partitioning and laying out an overview graph and several sub-graphs (partitions) in a coordinated, mental-map preserving way. *NetPartVis* is part of the Vanted system for the analysis and visualisation of experimental data in the context of biological networks. However, Vanted is also a general graph editor which can be used for graphs or networks from many other domains. Networks can be imported using several standards, such as GML [34], GraphML [35], SBGN-ML [36] and others, and be exported in the respective format, or alternatively as images and clickable web pages. Thus, the presented method, as well as its implementation is of broad use for network visualisation and exploration.

**Funding source: **Deutsche Forschungsgemeinschaft

**Award Identifier / Grant number: **SFB-TRR 161

**Conflict of interest statement:** Authors state no conflict of interest. All authors have read the journal’s publication ethics and publication malpractice statement available at the journal’s website and hereby confirm that they comply with all its parts applicable to the present scientific work.

[1] Kanehisa M, Goto S, Hattori M, Aoki-Kinoshita KF, Itoh M, Kawashima S, et al. From genomics to chemical genomics: new developments in KEGG. Nucleic Acids Res 2006;34:D354–7.1638188510.1093/nar/gkj102 Search in Google Scholar

[2] Le Novère N, Hucka M, Mi H, Moodie S, Schreiber F, Sorokin A, et al. The systems biology graphical notation. Nat Biotechnol 2009;27:735–41.1966818310.1038/nbt.1558 Search in Google Scholar

[3] Czauderna T, Klukas C, Schreiber F. Editing, validating, and translating of SBGN maps. Bioinformatics 2010;26:2340–1.10.1093/bioinformatics/btq40720628075 Search in Google Scholar

[4] Czauderna T, Wybrow M, Marriott K, Schreiber F. Conversion of kegg metabolic pathways to sbgn maps including automatic layout. BMC Bioinformatics 2013;14:250.2395313210.1186/1471-2105-14-250 Search in Google Scholar

[5] Bachmaier C, Brandes U, Schreiber F. Biological networks. In: Handbook of graph drawing and visualization. Boca Raton: Taylor & Francis, 2014:621–651. Search in Google Scholar

[6] Di Battista G, Eades P, Tamassia R, et al. Graph drawing: Algorithms for the visualization of graphs. New Jersey: Prentice Hall; 1999. Search in Google Scholar

[7] Kohlbacher O, Schreiber F, Ward MO. Multivariate networks in the life sciences. In: Multivariate network visualization. Cham: Springer, 2014:61–73. Search in Google Scholar

[8] Schreiber F, Dwyer T, Marriott K, Wybrow M. A generic algorithm for layout of biological networks. BMC Bioinformatics 2009;10:375.10.1186/1471-2105-10-37519909528 Search in Google Scholar

[9] Brandes U, Erlebach T. Network analysis: Methodological foundations. volume 3418 of LNCS. Berlin, Heidelberg: Springer, 2005. Search in Google Scholar

[10] Junker BH, Schreiber F. Analysis of biological networks. Wiley series on bioinformatics, computational techniques and engineering. New Jersey: Wiley, 2008. Search in Google Scholar

[11] Eades P, Feng QW. Multilevel visualization of clustered graphs. In: Proceedings Graph Drawing, LNCS. volume 1190, Berlin, Heidelberg: Springer Verlag, 1996;101–112 1190. Search in Google Scholar

[12] Buchsbaum AL, Westbrook JR. Maintaining Hierarchical Graph Views. 11th ACM-SIAM Symposium on Discrete Algorithms; 2000. Search in Google Scholar

[13] Schreiber F, Kerren A, Börner K, Hagen H, Zeckzer D. Heterogeneous networks on multiple levels. In: Multi-variate network visualization. Cham: Springer, LNCS 8380, 2017:175–206. Search in Google Scholar

[14] Quigley A, Eades P. Fade: Graph drawing, clustering, and visual abstraction. In: Graph Drawing 2000, volume 1984 of LNCS. Berlin, Heidelberg: Springer, 2000:197–210. Search in Google Scholar

[15] Wang X, Miyamoto I. Generating customized layouts. In: Brandenburg FJ, ed. Graph Drawing. Berlin Heidelberg: Springer, 1996:504–515. Search in Google Scholar

[16] Eades P, Feng Q-W, Nagamochi H. Drawing clustered graphs on an orthogonal grid. J Graph Algorithms Appl 1997;3:3–29. Search in Google Scholar

[17] Sugiyama K, Misue K. Visualization of structural information: Automatic drawing of compound digraphs. IEEE Trans Syst Man Cybern Syst 1991;21:876–92.10.1109/21.108304 Search in Google Scholar

[18] Feng Q-W, Cohen R F, Eades P. How to draw a planar clustered graph. In: Du D-Z, ed. Proceedings International Conference on Computing and Combinatorics (COCOON’95), volume 959 of LNCS. Berlin, Heidelberg: Springer Verlag, 1995:21–30. Search in Google Scholar

[19] Chimani M, Gutwenger C, Jansen M, et al. Computing maximum c-planar subgraphs. In: Tollis IG, Patrignani M, eds. Graph Drawing. Berlin, Heidelberg: Springer Berlin Heidelberg, 2009:114–120. Search in Google Scholar

[20] Di Battista G, Didimo W, Marcandalli A. Planarization of clustered graphs. In: Mutzel P, Jünger M, Leipert S, eds. Graph Drawing. Berlin, Heidelberg: Springer Berlin Heidelberg, 2002:60–74. Search in Google Scholar

[21] Cortese PF, Patrignani M. Clustered planarity = flat clustered planarity. In: Biedl T, Kerren A, eds. Graph Drawing and Network Visualization. Cham: Springer International Publishing, 2018:23–38. Search in Google Scholar

[22] Chimani M, Di Battista G, Frati F, Klein K. Advances on testing c-planarity of embedded flat clustered graphs. Int J Found Comput Sci 2019;30:197–230.10.1142/S0129054119500011 Search in Google Scholar

[23] Dogrusoz U, Giral E, Cetintas A, et al. A compound graph layout algorithm for biological pathways. In: Pach J, ed. Proceedings International Symposium on Graph Drawing (GD’04), LNCS, 2004:442–447. Search in Google Scholar

[24] Brandes U, Dwyer T, Schreiber F. Visual triangulation of network-based phylogenetic trees. In: Deussen O, Hansen C, Keim D, Saupe D, eds. Proceedings Joint Eurographics – IEEE TCVG Symposium on Visualization (VisSym’04). Eurographics Association, 2004:75–84. Search in Google Scholar

[25] Misue K, Eades P, Lai W, Sugiyama K. Layout adjustment and the mental map. J Visual Lang Comput 1995;6:183–210.10.1006/jvlc.1995.1010 Search in Google Scholar

[26] Junker BH, Klukas C, Schreiber F. VANTED: A system for advanced data analysis and visualization in the context of biological networks. BMC Bioinformatics. 2006;7:109.16519817 Search in Google Scholar

[27] Gräßler J, Koschützki D, Schreiber F. Centilib: comprehensive analysis and exploration of network centralities. Bioinformatics 2012;28:1178–9.2239094010.1093/bioinformatics/bts106 Search in Google Scholar

[28] Rohn H, Hartmann A, Junker A, Junker BH, Schreiber F. Fluxmap: a vanted add-on for the visual exploration of flux distributions in biological networks. BMC Systems Biology 2012;6:33.1–9. Search in Google Scholar

[29] Moodie SL, Le Novère N, Demir E, Mi H, Villéger A. Systems biology graphical notation: Process description language level 1 version 1.3. J Integr Bioinform 2015;12:263.26528561 Search in Google Scholar

[30] Sorokin AA, Le Novère N, Luna A, Czauderna T, Demir E, Haw R, et al. Systems biology graphical notation: Entity relationship language level 1 version 2. J Integr Bioinform 2015;12:264.26528562 Search in Google Scholar

[31] Mi H, Schreiber F, Moodie S, Czauderna T, Demir E, Haw R, et al. Systems biology graphical notation: activity flow language level 1 version 1.2. J Integr Bioinform 2015;12:e265. Search in Google Scholar

[32] Junker A, Rohn H, Czauderna T, Klukas C, Hartmann A, Schreiber F. Creating interactive, web-based and data-enriched maps using the systems biology graphical notation. Nat Protoc 2012;7:579–93.10.1038/nprot.2012.00222383037 Search in Google Scholar

[33] Rohn H, Junker A, Hartmann A, Grafahrend-Belau E, Treutler H, Klapperstück M, et al. VANTED v2: A framework for systems biology applications. BMC Systems Biology 2012;6:139.23140568 Search in Google Scholar

[34] Himsolt M. GML: A portable graph file format. Technical report, University of Passau, 1996. Search in Google Scholar

[35] Brandes U, Eiglsperger M, Lerner J, et al. Graph markup language (GraphML). In: Tamassia R, ed. Handbook of graph drawing visualization, discrete mathematics and its applications. Boca Raton: CRC Press, 2013:517–541. Search in Google Scholar

[36] Van Iersel MP, Villéger AC, Czauderna T, Boyd SE, Bergmann FT, Luna A, et al. Software support for sbgn maps: Sbgn-ml and libsbgn. Bioinformatics 2012;28:2016–21.2258117610.1093/bioinformatics/bts270 Search in Google Scholar

© 2019, Dimitar Garkov et al., published by Walter de Gruyter GmbH, Berlin/Boston

This work is licensed under the Creative Commons Attribution 4.0 Public License.