ExamplesΒΆ

The hello world of zgraph

1
2
3
4
5
6
#include "zgraph/zgraph.hpp"
#include "zgraph/zgraph_config.hpp"

int main(int argc, char *argv[]){

}

Print the versions of zgraph

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include <iostream>

#include "zgraph/zgraph.hpp"
#include "zgraph/zgraph_config.hpp"

int main(int argc, char *argv[]){
    std::cout<<"ZGRAPH_VERSION_MAJOR "<<ZGRAPH_VERSION_MAJOR<<"\n";
    std::cout<<"ZGRAPH_VERSION_MINOR "<<ZGRAPH_VERSION_MINOR<<"\n";
    std::cout<<"ZGRAPH_VERSION_PATCH "<<ZGRAPH_VERSION_PATCH<<"\n";
}