This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
SO i have here 8 persons(their links in coumn1&2) with relation1 as regulation and relation2 as interaction(column3).
I wrote a program which searches for the links between 3 persons in the following way: if we consider 3 persons(a pattern) 1,2,3 then there should be a link between (1,2)(1,3)&(2,3) and the relation should be always1(regulation).Then the output should be those 3 persons(1,2,3).
*If there exists a reverselink between (2,1) and also when a link has both the relations(1&2-regulation and interaction)then the pattern should be ignored For example in the case of 3,4,5.we have (3,4)(3,5)&(4,5) with the relation 1 and we also have a reverse regulation(5,4). In this case 3,4,5 shouldnot be counted.
Also6,7,8.Links (6,7)(6,8)&(7,8)all with relation 1 but at the lastline we also have a link (7,8)with a relation2.So it should also be ignored.
THe original file which I have used as input has around 1300 persons and almost 6000 rows(links).Computational time is too much and also the baove program gives the output which considers reverse regulation.Which shouldnot happen?
Kindly correct my code running the sample input file given above.
I don't think you understand A) the purpose of this forum, and B) the purpose of this site.
This particular forum is about fun little games or puzzles. It is not the place to post your homework or your work tasks.
in general, this site is not going to fix your problems for you. this is mostly an educational site, where we try and help people learn to program and how to think about programming. You could post in specific forums specific questions about your code - but with your code formatted like this, very few folks (who are all volunteers) are going to take the time to read it.
If you are looking to have someone write/fix/maintain code for you, there is one forum you can try - the "Jobs Offered" forum. you might be able to find somebody there who would fix your code, but you'd have to pay them.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors