ArticleslgStudy

computer science

Bigraph

Bigraph is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bigraph rather than just read about it. In short: A bigraph can be modelled as the superposition of a graph (the link graph) and a set of trees (the place graph). Each node of the bigraph is part of a graph and also part of some tree that describes how the nodes are nested.

Bigraph — main illustration
Bigraph — illustration

Key takeaways

  • Bigraph belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bigraph to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bigraph from memory before moving on to harder problems.

Reference excerpt

A bigraph can be modelled as the superposition of a graph (the link graph) and a set of trees (the place graph). Each node of the bigraph is part of a graph and also part of some tree that describes how the nodes are nested. Bigraphs can be conveniently and formally displayed as diagrams. They have applications in the modelling of distributed systems for ubiquitous computing and can be used to describe mobile interactions. They have also been used by Robin Milner in an attempt to subsume Calculus of Communicating Systems (CCS) and π-calculus. They have been studied in the context of category theory.

Anatomy of a bigraph Aside from nodes and (hyper-)edges, a bigraph may have associated with it one or more regions which are roots in the place forest, and zero or more holes in the place graph, into which other bigraph regions may be inserted. Similarly, to nodes we may assign controls that define identities and an arity (the number of ports for a given node to which link-graph edges may connect). These controls are drawn from a bigraph signature. In the link graph we define inner and outer names, which define the connection points at which coincident names may be fused to form a single link.

Foundations A bigraph is a 5-tuple: (V,E,ctrl,prnt,link):⟨k,X⟩→⟨m,Y⟩, where V is a set of nodes, E is a set of edges, ctrl is the control map that assigns controls to nodes, prnt is the parent map that defines the nesting of nodes, and link is the link map that defines the link structure. The notation ⟨k,X⟩→⟨m,Y⟩ indicates that the bigraph has k holes (sites) and a set of inner names X and m regions, with a set of outer names Y. These are respectively known as the inner and outer interfaces of the bigraph. Formally speaking, each bigraph is an arrow in a symmetric partial monoidal category (usually abbreviated spm-category) in which the objects are these interfaces. As a result, the composition of bigraphs is definable in terms of the composition of arrows in the category.

Extensions and variants

Directed Bigraphs Directed Bigraphs are a generalisation of bigraphs where hyper-edges of the link-graph are directed. Ports and names of the interfaces are extended with a polarity (positive or negative) with the requirement that the direction of hyper-edges goes from negative to positive. Directed bigraphs were introduced as a meta-model for describing computation paradigms dealing with locations and resource communication where a directed link-graph provides a natural description of resource dependencies or information flow. Examples of areas of applications are security protocols, resource access management, and cloud computing.

Bigraphs with sharing

Bigraphs with sharing are a generalisation of Milner's formalisation that allows for a straightforward representation of overlapping or intersecting spatial locations. In bigraphs with sharing, the place graph is defined as a directed acyclic graph (DAG), i.e. prnt is a binary relation instead of a map. The definition of link graph is unaffected by the introduction of sharing. Note that standard bigraphs are a sub-class of bigraphs with sharing. Areas of application of bigraphs with sharing include wireless networking protocols, real-time management of domestic wireless networks and mixed reality systems.

Tools and Implementations BigraphER is a modelling and reasoning environment for bigraphs consisting of an OCaml library and a command-line tool providing an efficient implementation of rewriting, simulation and visualisation for both bigraphs and bigraphs with sharing. jLibBig is a Java library providing efficient and extensible implementation of bigraphical reactive systems for both bigraphs and directed bigraphs. No longer actively developed:

BigMC Archived 2020-11-30 at the Wayback Machine is model checker for bigraphs which includes a command line interface and visualisation. Big Red Archived 2020-01-31 at the Wayback Machine is a graphical editor for bigraphs with easily extensible support for various file formats. SBAM is a stochastic simulator for bigraphs, aimed at simulation of biological models. DBAM is a distributed simulator for bigraphical reactive systems. DBtk is a toolkit for directed bigraphs that provides calculation of IPOs, matching, and visualisation.

See also Bisimulation Combinatorial species

Bibliography Milner, Robin (2009). The Space and Motion of Communicating Agents. Cambridge University Press. ISBN 978-0-521-73833-0. Milner, Robin (2001). "Bigraphical reactive systems, (invited paper)". CONCUR 2001 – Concurrency Theory, Proc. 12th International Conference. Lecture Notes in Computer Science. Vol. 2154. Springer-Verlag. pp. 16–35. doi:10.1007/3-540-44685-0_2. Milner, Robin (2002). "Bigraphs as a Model for Mobile Interaction (invited paper)". ICGT 2002: First International Conference on Graph Transformation. Lecture Notes in Computer Science. Vol. 2505. Springer-Verlag. pp. 8–13. doi:10.1007/3-540-45832-8_3. Debois, Søren; Damgaard, Troels Christoffer (2005). "Bigraphs by Example". IT University Technical Report Series TR-2005-61. Denmark: IT University of Copenhagen. ISBN 978-87-7949-090-1.{{cite book}}: CS1 maint: miscellaneous url (link) Sevegnani, Michele; Calder, Muffy (2015). "Bigraphs with sharing". Theoretical Computer Science. 577: 43–73. doi:10.1016/j.tcs.2015.02.011.

References

External links Bibliography on Bigraphs

Illustrations

Bigraph: Example bigraph with sharing in which the node of control M is shared by the two nodes of control S. This is represented by M being in the intersection of the two S-nodes.
Example bigraph with sharing in which the node of control M is shared by the two nodes of control S. This is represented by M being in the intersection of the two S-nodes.

Worked examples

Example 1 — a first encounter with Bigraph

Start with the simplest possible case. Write down what Bigraph claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bigraph before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bigraph ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bigraph

In research
Bigraph appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bigraph in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bigraph is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formal methods, Theoretical computer science, so understanding it makes those chapters shorter.
In everyday life
Look for Bigraph outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bigraph” →

How to study Bigraph in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bigraph means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bigraph out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bigraph in simple terms?

A bigraph can be modelled as the superposition of a graph (the link graph) and a set of trees (the place graph). Each node of the bigraph is part of a graph and also part of some tree that describes how the nodes are nested.

Why does Bigraph matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bigraph?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bigraph.

Tags

  • Formal methods
  • Theoretical computer science

Keep exploring