In the diagram, resistance between any two junctions is R. Equivalent resistance across terminals A and B is