Skip to content

Conversation

@Vinay00018
Copy link

I did small changes

String userChoice = s.nextLine().trim().toLowerCase();
boolean labelled = userChoice.equals("yes");


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got an extra line here

patternGraph,
patternGraphFilepath);
AlgorithmRunner.runAlgorithm(result, hostGraph, patternGraph);
AlgorithmRunner.runAlgorithm(result, hostGraph, patternGraph,labelled);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AlgorithmRunner.runAlgorithm(result, hostGraph, patternGraph,labelled);
AlgorithmRunner.runAlgorithm(result, hostGraph, patternGraph, labelled);

@jessLryan
Copy link
Owner

@Vinay00018 sorry for the delay on my end, this is a very nice first commit, you absolutely have the right idea

public static void runAlgorithm(RunResult result, Graph hostGraph, Graph patternGraph,boolean labelled) {
if (labelled) {
// If labelled, run the labelled subgraph counting algorithm
LabelledSubgraphCountingAlgorithm lSa = new LabelledSubgraphCountingAlgorithm(hostGraph, patternGraph, hostGraph.getHighestDegVertices(0));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still want to use the ParameterValueOptimiser to work out which vertices should be the high-degree vertices (see lines 44-49 below)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would also be useful to update RunResult so that we can say whether we counted labelled or unlabelled copies (could actually include both, since when we've counted unlabelled copies, we also know how many labelled copies there are)

int A = labelledSubgraphCountingAlgorithm.run();


int B = BruteForceLabelledSubgraphCountingAlgorithm.countLabelledCopiesWithLists(patternGraph,hostGraph);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some more descriptive variable names would be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants