Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * File: Vertex.h
- * Authoren: The Speedfisting Crew
- *
- * Created on Fistersday, 1 3 3 7 , 13:37
- * made in Hanau,Hessen,Germany
- */
- #ifndef VERTEX_H
- #define VERTEX_H
- #include <iostream>
- #include <string>
- using namespace std;
- class Vertex {
- public:
- Vertex();
- Vertex(const Vertex& orig);
- ~Vertex();
- int getIndegree()const;
- int getOutdegree()const;
- int getOrd()const;
- string getValue()const;
- bool isVisited()const;
- bool isLiving()const;
- void setVisited(bool);
- void setLiving(bool);
- void setIndegree(int);
- void setOutdegree(int);
- void setOrd(int);
- void setValue(string);
- void incIndegree();
- void decIndegree();
- void incOutdegree();
- void decOutdegree();
- void setVorgaenger(int);
- int getVorgaenger()const;
- void setDistance(double);
- double getDistance() const;
- Vertex& operator=(const Vertex&);
- private:
- string value; // Markierung
- int indegree; // Eingangsgrad
- int outdegree; // Ausgangsgrad
- int ord; // Ordnungszahl des Knotens
- bool visited; // Knoten-"besucht"-Marke
- bool living; // Knoten existiert
- int vorgaenger; //position des vertex im vertex array
- double distance; //distanz zum startknoten
- };
- #endif /* VERTEX_H */
Add Comment
Please, Sign In to add comment