试试这个:
create edge <edge name> from (select from class1 where A IN (select A from class2)) to (select from class2 where A IN (select A from class1))
希望能帮助到你
问候