Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

hypergraph.cpp
Go to the documentation of this file.
3 
4 using namespace ogdf;
5 
6 int main()
7 {
8  Hypergraph H;
9 
10  H.readBenchHypergraph("c17.bench");
11 
13  HypergraphLayoutES hlES;
14 
16  hlES.call(HA);
17 
18  GraphIO::write(HA.repGA(), "output-c17.gml", GraphIO::writeGML);
19  GraphIO::write(HA.repGA(), "output-c17.svg", GraphIO::drawSVG);
20 
21  return 0;
22 }
ogdf
The namespace for all OGDF objects.
Definition: AugmentationModule.h:36
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:115
ogdf::HypergraphAttributesES
Stores additional attributes of edge standard representation of a hypergraph.
Definition: HypergraphAttributes.h:139
ogdf::HypergraphLayoutES::call
virtual void call(HypergraphAttributes &HA) override
Computes a layout of hypergraph given by HA.
main
int main()
Definition: hypergraph.cpp:6
GraphIO.h
Declares class GraphIO which provides access to all graph read and write functionality.
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:176
ogdf::HypergraphLayoutES
Definition: HypergraphLayout.h:56
HypergraphLayout.h
Layout algorithms for hypergraph based on edge standard representations (clique / star / tree) - Hype...
ogdf::Hypergraph
Definition: Hypergraph.h:400