Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

hypergraph.cpp
Go to the documentation of this file.
6 #include <string>
7 
8 using namespace ogdf;
9 
10 int main()
11 {
12  Hypergraph H;
13 
14  H.readBenchHypergraph("c17.bench");
15 
17  HypergraphLayoutES hlES;
18 
20  hlES.call(HA);
21 
22  GraphIO::write(HA.repGA(), "output-c17.gml", GraphIO::writeGML);
23  GraphIO::write(HA.repGA(), "output-c17.svg", GraphIO::drawSVG);
24 
25  return 0;
26 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphIO::write
static bool write(const Graph &G, const string &filename, WriterFunc writer=nullptr)
Writes graph G to a file with name filename and infers the format to use from the file's extension.
ogdf::GraphIO::writeGML
static bool writeGML(const Graph &G, std::ostream &os)
Writes graph G in GML format to output stream os.
ogdf::GraphIO::drawSVG
static bool drawSVG(const GraphAttributes &A, std::ostream &os, const SVGSettings &settings)
ogdf::HypergraphLayoutES::setProfile
void setProfile(Profile pProfile)
Sets the layout profile.
Definition: HypergraphLayout.h:120
ogdf::HypergraphAttributesES
Stores additional attributes of edge standard representation of a hypergraph.
Definition: HypergraphAttributes.h:145
ogdf::HypergraphLayoutES::call
virtual void call(HypergraphAttributes &HA) override
Computes a layout of hypergraph given by HA.
main
int main()
Definition: hypergraph.cpp:10
Hypergraph.h
Declaration and a partial implementation of a Hypergraph class partly based on the original classes f...
GraphIO.h
Declares class GraphIO which provides access to all graph read and write functionality.
EdgeStandardRep.h
A declaration of EdgeStandardRep class representing a graph representation of a hypergraph in the edg...
HypergraphAttributes.h
Declares HypergraphAttributes storing specific attributes related to hypergraph layout drawings.
ogdf::HypergraphLayoutES::Profile::Normal
@ Normal
ogdf::EdgeStandardType::tree
@ tree
for every hyperedge e a minimal subcubic tree connecting all hypernodes incident with e together is a...
ogdf::HypergraphAttributesES::repGA
const GraphAttributes & repGA() const
Definition: HypergraphAttributes.h:182
ogdf::HypergraphLayoutES
Definition: HypergraphLayout.h:61
HypergraphLayout.h
Layout algorithms for hypergraph based on edge standard representations (clique / star / tree) - Hype...
ogdf::Hypergraph
Definition: Hypergraph.h:409