private static boolean mayHaveResourceEdge ( TransactionOLTP graknGraph , ConceptId conceptId1 , ConceptId conceptId2 ) { Concept concept1 = graknGraph . getConcept ( conceptId1 ) ; Concept concept2 = graknGraph . getConcept ( conceptId2 ) ; return concept1 != null && concept2 != null && ( concept1 . isAttribute ( ) || concept2 . isAttribute ( ) ) ; }
Check whether it is possible that there is a resource edge between the two given concepts .