Problem with Custom Library

I am currently having problem with a library that I've written. Basically I want a variable of class edge to contain an instance of the class node.

// ensure this library description is only included once
#ifndef edge_h
#define edge_h

// include types & constants of Wiring core API
//#include "WConstants.h"
#include <node.h>

// library interface description
class edge
{
// user-accessible "public" interface
public:
edge();
//node beg;
//node end;

// library-accessible "private" interface
private:
node beg;
};

#endif

when I add in the "node beg;" line, I get a message saying that "E:\Users\Kevin Li\Desktop\arduino-1.0\libraries\edge/edge.h:25: error: 'node' has not been declared". Does anyone know what the problem is? Thanks.

Does anyone know what the problem is?

Yes. You can NOT hide libraries from the sketch. The sketch defines what gets compiled. If it doesn't know about a file (node.h and node.cpp), the files are not copied to the temp folder and are not compiled.

In that case, would it be possible for me to include multiple header/cpp files in one library?

In that case, would it be possible for me to include multiple header/cpp files in one library?

Yes. Look at the Ethernet library.