i am planning to develop a feature in my web application a simple social network, where you can have friends, and other friends interconnected with each other. I just don't have any idea where to start here since i don't know what i am going to use. Can anybody, please help me on this , or can you give me a simple example showing something related to this . thanks a lot in advance. your help would be greatly appreciated. Thanks guys.
I would suggest to study existing sites like MySpace, FaceBook, LinkedIn and XING. See what they have, and come up with a list of features you need/want. I don't think there are any particularly complex algorithms involved.
One way to start is with a large whiteboard or big sheet of paper!
I'm serious - drawing out diagrams of how you want your users to be connected to each other and various functions could clarify your thinking.
I would never start a big project like this by staring at a code editor - draw lots of diagrams first. Thats why this post got transferred here - UML, patterns etc are the tools people have invented to tackle projects like this.