I don't understand your scenario. You're opening a NodeXL workbook from your console application and you want to calculate graph metrics on the workbook? There is no method for that. The only way to calculate graph metrics on a workbook is through the UI of the NodeXL Excel Template.
Or did you mean that you have your own Smrf.NodeXL.Core.Graph object and you want to calculate graph metrics for the Graph? In that case, you can use the family of classes implemented in the Smrf.NodeXL.Algorithms namespace, like VertexDegreeCalculator and OverallMetricCalculator, which take a Graph object and return metrics for the graph. Those are documented in the NodeXLApi.chm help file. Search for the "Smrf.NodeXL.Algorithms Namespace" topic.
You can find a few code sample here:
http://nodexl.codeplex.com/discussions/285157
Or did you mean that you have your own Smrf.NodeXL.Core.Graph object and you want to calculate graph metrics for the Graph? In that case, you can use the family of classes implemented in the Smrf.NodeXL.Algorithms namespace, like VertexDegreeCalculator and OverallMetricCalculator, which take a Graph object and return metrics for the graph. Those are documented in the NodeXLApi.chm help file. Search for the "Smrf.NodeXL.Algorithms Namespace" topic.
You can find a few code sample here:
http://nodexl.codeplex.com/discussions/285157