/* * sf_network.hpp * * Defines the interface for the SF_Network class. This class contains * the representation for the entire network as an array of nodes, each * with a list of nieghbors. * * Written by Alex Popkin * For Math 164 Final Project, Spring 2004 * Mar. 14, 2004 */ #ifndef SF_NETWORK_HPP_INCLUDED #define SF_NETWORK_HPP_INCLUDED 1 #include #include #include #include using namespace std; // Incomplete class declaration class Node; // Interface to the SF_Network class class SF_Network { public: // The constructor takes the size of the network and the number // of links per node, and creates the entire network SF_Network(int size_, bool time_); // The destructor will free the memory for the entire network ~SF_Network(); // The epi function runs an epidemic model once. It inputs the // initial percentage of infected nodes, the percentage of immune // nodes, the value of lambda, and the # of generations. void epi(double init, double g, double lambda, int gens); // The printK function outputs the number of nodes of each degree. // The argument tells what increment you want for the output. void printK(int incr); private: Node** vertices; // The array of vertices int V; // The size of the vertex set int E; // The size of the edge set }; #endif // SF_NETWORK_HPP_INCLUDED /* Junk to make emacs use the right C++ style when editing this code: * Local Variables: * c-file-style: "stroustrup" * End: */