Please start by reading through the Creating a Graph chapter of the yEd Manual.
If that does not help, please explain your use in more detail.